Thread: Help :(
View Single Post
  #24  
Old 08-22-2009, 08:32 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by Switch View Post
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 (
plplayers)
      
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) { 
Reply With Quote