Why are you using a serverr flag for this? You can just send the token setting the midi/streaming URL to the server. Also, it would be so much easier if you used a Gani for this.
In a weapon/level:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
if (!(player.account in {"sssssssssss","Decus_Arilias"}))
return;
if (!(player.chat.tokenize()[0] == "playmidi"))
return;
setAni("playmidi",player.chat.tokenize()[1]);
}
In a Gani named "playmidi" with preferably the idle in it or something to show that you're playing a song, go down to below all the DEF stuff and do something like this under it:
PHP Code:
SCRIPT
function onPlayerEnters()
play(param[0]);
SCRIPTEND