SA-MP Forums Archive
Anti respawn - 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: Anti respawn (/showthread.php?tid=564171)



Anti respawn - sirvanec - 19.02.2015

Hi guys, i need i fs or something that kicks player if they don't spawn in requestclass i mean if player is still stayed in requestclass in 30 seconds the server kicks player but if players spawns and play. Killtimer in onplayerrequestspawn. I had one fs like that but it kicks the player anyway like if player spawn or not..


Re: Anti respawn - CalvinC - 19.02.2015

In OnPlayerRequestClass, use SetTimerEx of 30 seconds that kicks the player.
In OnPlayerSpawn, use KillTimer.