SA-MP Forums Archive
Timer problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timer problem (/showthread.php?tid=565793)



Timer problem - EptunLP - 01.03.2015

Hello guys, i want to freeze player because i have a streamer so it needs a while to load so what i do is:

Код:
                
TogglePlayerControllable(playerid, 0);
SetTimer("unfreeze", 2000, 0);
And then i have the unfreeze public:

Код:
forward unfreeze(playerid);
public unfreeze(playerid)
{
	TogglePlayerControllable(playerid, 1);
}
But idk if the public is not called or its just some other problem, can you help me guys? Thanks


Re: Timer problem - Nabster - 01.03.2015

SetTimerEx("unfreeze", 2000,false, "i",playerid);

Use this


Re: Timer problem - HY - 01.03.2015

pawn Код:
SetTimerEx("unfreeze", 2000, false, "i", playerid);
SetTimerEx.


Re: Timer problem - EptunLP - 01.03.2015

Thank you guys. Please lock