15.09.2015, 00:47
...there exist no local timers...but i think i know what you mean.
Look you can run a timer for every player like:
This timer would run for every player...
A global timer is sth like this:
So you see..the global timer handels all players in one timer..so you dont need 500 timers..only 1
Look you can run a timer for every player like:
PHP код:
//Under OnPlayerConnect:
SetTimerEx("PlayerTimer",999,1,"i",playerid);
A global timer is sth like this:
PHP код:
//Under OnGameModeInit
SetTimer("ForAll",999,1);
forward ForAll();
public ForAll()
{
for(new i; i<MAX_PLAYERS; i++)
{
//here the code
}
}
