Quote:
Originally Posted by fowlplay4
Why can't you use schedule event?
PHP Code:
function onActionServerSide() {
blah();
blah();
clientr.testvalue = 0;
this.scheduleevent(5, "ChangeTestValue", player.account);
}
function onChangeTestValue(pl) {
pl = findplayer(pl);
if (pl != NULL) {
pl.clientr.testvalue = 1;
}
}
|
Even better:
PHP Code:
function onActionServerSide() {
blah();
blah();
clientr.testvalue = 0;
this.scheduleevent(5, "ChangeTestValue", player); // send the player object instead of the account
}
function onChangeTestValue(pl) {
if (pl != NULL) {
pl.clientr.testvalue = 1;
}
}