How can i make this script change Radio Stations or script a radio changer part to it
NPC Code:
//Copyright© 2005 Vash-Aniki(*coreys)
//Donated to Reborn (Playerworld14) to Jay
if (actionserverside) {
if (strequals(#p(0),play)) {
setstring serverr.radiotitle,#p(1);
setstring serverr.radiosong,#p(2);
setstring serverr.radiodj,#p(3);
setstring serverr.djhead,#p(4);
}
if (strequals(#p(0),chat)) {
setstring serverr.radiochat,#p(1);
}
}
//#CLIENTSIDE
if (weaponfired) {
if (this.on==0) {
this.on = 1;
setplayerprop #c,Radio Connected!;
} else {
this.on = 0;
setplayerprop #c,Radio Disconnected!;
hideimgs 200,1030;
stopmidi;
}
}
if (timeout && this.on == 1) {
play #s(serverr.radiosong);
showtext 1002,40,105,arial,,DJ: #s(serverr.radiodj);
changeimgvis 1002,5;
showtext 1004,40,115,arial,,Song: #s(serverr.radiotitle);
changeimgvis 1004,5;
showtext 1005,40,125,arial,,Chat: #s(serverr.radiochat);
changeimgvis 1005,5;
} timeout =.05;
if (playerchats) {
if (strequals(#a,alissalee)) {
if (startswith(/play,#c)) {
tokenize #c;
triggeraction 0,0,serverside,Misc/Radio,play,#t(1),#t(2),#n,#3;
}
if (startswith(/chat,#c)) {
triggeraction 0,0,serverside,Misc/Radio,chat,#T(#e(5,-1,#c));
}
if (startswith(/channel 2,#c)) {
triggeraction 0,0serverside,Misc/Radio,station1,#T
//Copyright© 2005 Vash-Aniki(*coreys)
if (actionserverside) {
if (strequals(#p(0),play)) {
setstring serverr.radiotitle,#p(1);
setstring serverr.radiosong,#p(2);
setstring serverr.radiodj,#p(3);
setstring serverr.djhead,#p(4);
}
if (strequals(#p(0),chat)) {
setstring serverr.radiochat,#p(1);
}
}
//#CLIENTSIDE
if (weaponfired) {
if (this.on==0) {
this.on = 1;
setplayerprop #c,Radio Connected!;
} else {
this.on = 0;
setplayerprop #c,Radio Disconnected!;
hideimgs 200,1030;
stopmidi;
}
}
if (timeout && this.on == 1) {
play #s(serverr.radiosong);
showtext 1002,40,105,arial,,DJ: #s(serverr.radiodj);
changeimgvis 1002,5;
showtext 1004,40,115,arial,,Song: #s(serverr.radiotitle);
changeimgvis 1004,5;
showtext 1005,40,125,arial,,Chat: #s(serverr.radiochat);
changeimgvis 1005,5;
} timeout =.05;
if (playerchats) {
if (strequals(#a,alissalee)) {
if (startswith(/play,#c)) {
tokenize #c;
triggeraction 0,0,serverside,Misc/Radio,play,#t(1),#t(2),#n,#3;
}
if (startswith(/chat,#c)) {
triggeraction 0,0,serverside,Misc/Radio,chat,#T(#e(5,-1,#c));
}
}
}
}
}
}