09.12.2009, 19:53
So, to help this guy out... he wants a timer that freezes the player while objects are loading..
so:
under #include <a_samp>
forward Freezeobj(i);
On the commands, like teleports to places with objects put:
SetTimerEx("Freezeobj",5000,0,"d",playerid);
so that will freeze player for 5000 miliseconds
and at very end of your script put
public Freezeobj(i) TogglePlayerControllable(i,1);
Should work now
so:
under #include <a_samp>
forward Freezeobj(i);
On the commands, like teleports to places with objects put:
SetTimerEx("Freezeobj",5000,0,"d",playerid);
so that will freeze player for 5000 miliseconds
and at very end of your script put
public Freezeobj(i) TogglePlayerControllable(i,1);
Should work now