
08-22-2009, 08:32 PM
|
|
Registered User
|
 |
Join Date: Oct 2008
Posts: 1,133
|
|
Quote:
Originally Posted by Switch
It would but it would also play for everyone in the level, unless you mean that he wants to make it play for everyone on the server. If that's the case, then something like this should work:
PHP Code:
function onActionServerside(cmd,p1) { if (cmd == "playmidi") { for (pl: players) findPlayer(pl).setAni("playmidi",p1); } }
//#CLIENTSIDE function onPlayerChats() { if (!(player.account in {"sssssssssss","Decus_Arilias"})) return; if (player.chat.tokenize()[0] == "playmidi") triggerServer("gui",this,"playmidi",player.chat.tokenize()[1]); }
|
If that's the case something like this should, but won't work.
It should be:
PHP Code:
for (temp.pl : allplayers) {
|
|
|
|