Thread: Help :(
View Single Post
  #23  
Old 08-22-2009, 06:59 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by Gambet View Post
Your example is a little off since it would only set the animation for the player using the command.
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 (
plallplayers)
      
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]);

__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.

Last edited by Switch; 08-22-2009 at 08:55 PM..
Reply With Quote