Gate only opens for one player
#4

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];
OnPlayerConnect:
Код:
pGateCheck[playerid] = SetTimerEx("GateCheck", 600 , true, "i", playerid);
OnPlayerDisconnect:
Код:
KillTimer(pGateCheck[playerid]);
Reply


Messages In This Thread
Gate only opens for one player - by FunnyBear - 15.12.2014, 16:55
Re: Gate only opens for one player - by PinkFloydLover - 15.12.2014, 17:01
Re: Gate only opens for one player - by FunnyBear - 15.12.2014, 17:06
Re: Gate only opens for one player - by Raweresh - 15.12.2014, 17:47
Re: Gate only opens for one player - by FunnyBear - 15.12.2014, 19:10

Forum Jump:


Users browsing this thread: 2 Guest(s)