I'm by no means a scripter, but I did make this NPC. It's your basic jukebox. Only plays one song at a time, simple commands, and all that stuff.
The problem I'm having is that I expected
everybody to be able to hear the music being played, but so far, only the person who started the music can hear it. How would I go about making it so EVERYONE can hear the music?
PHP Code:
if (playertouchsme) {
toweapons Jukebox;
}
if (weaponfired) {
say2 "/play url" to play#b
"/stop" to stop#b
url must end in mp3/wav/midi;
}
if (playerchats){
if(startswith(/play,#c)) {
tokenize #c;
play #t(1);
setplayerprop #c,;
}
}
if (playerchats){
if(strequals(#c,/stop)){
stopmidi;
setplayerprop #c,;
}
}
PS:
I know. GS1 = ew (in the words of Inverness)