15.12.2014, 17:47
Loop that code or change SetTimer("GateCheck", 600, true); to SetTimerEx("GateCheck", 600 , true, "i", playerid); and put it in OnPlayerConnect, and ofc delete it from OnGameModeInit. But for more optimalization do like this:
Global variable:
OnPlayerConnect:
OnPlayerDisconnect:
Global variable:
Код:
new pGateCheck[MAX_PLAYERS];
Код:
pGateCheck[playerid] = SetTimerEx("GateCheck", 600 , true, "i", playerid);
Код:
KillTimer(pGateCheck[playerid]);