OnPlayerRequestSpawn - 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: OnPlayerRequestSpawn (
/showthread.php?tid=269468)
OnPlayerRequestSpawn -
cloudysky - 16.07.2011
Basically I need a timer so that when the player selects there class it won't let them spawn for 10 seconds. I just don't know how to do it?
Re: OnPlayerRequestSpawn -
=WoR=Varth - 17.07.2011
Don't know if this code will work.
pawn Код:
forward SpawnNow(playerid);
OnPlayerRequestSpawn(playerid)
{
SetTimerEx("SpawnNow",10000,0,"d",playerid);
return 0
}
public SpawnNow(playerid)
{
OnPlayerSpawn(playerid);
return 1;
}
Re: OnPlayerRequestSpawn -
Lorenc_ - 17.07.2011
You can always use Unix Timestamps for such small things like this.