Help needed with this. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help needed with this. (
/showthread.php?tid=175714)
Help needed with this. -
Nathaniel_Joness - 10.09.2010
Hello i made a small filter script (this isn't all of it), it spawns and unfreezes the first person on the server but the others stay frozen.
Script:
forward objectsload();
public OnPlayerSpawn(playerid)
{
TogglePlayerControllable(playerid, 0);
SetTimer("objectsload", 3000, 0);
SendClientMessage(playerid,COLOR_WHITE,"Your frozen for 3 seconds, Loading Objects...");
return 1;
}
public objectsload()
{
new playerid;
TogglePlayerControllable(playerid, 1);
return 1;
}
(parts of filterscript, thats all i need to show)
Any ideas?
thanks
Re: Help needed with this. -
miokie - 10.09.2010
Try using SetTimerEx.
Re: Help needed with this. -
Nathaniel_Joness - 10.09.2010
Thanks worked