View Single Post
  #1  
Old 05-26-2009, 11:33 PM
Struggler Struggler is offline
Zone Repulser =D
Struggler's Avatar
Join Date: May 2006
Posts: 54
Struggler is an unknown quantity at this point
Replaceani with Parameters

I used a triggerserver script:
(shortened version)
PHP Code:
function onActionServerside(){
  if(
params[0] == "replaceidle"){
    
replaceani("idle",params[1]);
  }
}
//#CLIENTSIDE
function onPlayerChats(){
  if(
player.chat.starts("replaceidle")){
    
triggerserver("gui",this.name,"replaceidle",player.chat.substring(12));
  }

The replaceani doesnt work, I think it has something to do with the params.. So how would I go about getting it to work? It is to set the ani idle to the parameters identified in the playerchats function. Someone please explain what I'm doing wrong? Yes I know it can be shortened farther, but I have lots of others serverside actions along with that so I just decided to have it in the serverside aswell.
Reply With Quote