15.12.2014, 19:10
Quote:
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: Код:
new pGateCheck[MAX_PLAYERS]; Код:
pGateCheck[playerid] = SetTimerEx("GateCheck", 600 , true, "i", playerid); Код:
KillTimer(pGateCheck[playerid]); |