View Single Post
  #2  
Old 06-14-2010, 06:06 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I agree at the annoyance of restarting the client. It'd be nice if the delay was fixed as well. On Era we do:

PHP Code:
function onActionServerSide(cmd) {
  if (
cmd "requestReady") {
    
player.triggerClient("gui"this.name"clientsideReady");
  }
}
//#CLIENTSIDE
function onCreated() {
  
player.join("player");
  
player.triggerServer("gui"name"requestReady");
}

function 
onActionClientSide(cmd) {
  if (
cmd == "clientsideReady") {
    for (
temp.weapon player.weapons) {
       
weapon.trigger("playerReady"null);
    }
  }

And then any scripts that call player functions can use the event onPlayerReady instead of onCreated. Hope that helps someone with this problem.
__________________
Reply With Quote