SA-MP Forums Archive
[FilterScript] Spawn Protected - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Spawn Protected (/showthread.php?tid=430263)



Spawn Protected - ShakurMorinno - 13.04.2013

Hello to any and everyone! :P
Today I present my little FilterScript simply consists in having the Spawn protection ..
So for 10 seconds your life is unlimited.


download:
http://pastebin.com/KUWd8bmS

sorry for the mistakes I'm French


Re: Spawn Protected - doreto - 13.04.2013

wrong
SetPlayerHealth (playerid, 100,0);
* will cause error as will read 0 wich new parameter

correct
SetPlayerHealth (playerid, 100.0);


Re : Spawn Protected - ShakurMorinno - 13.04.2013

Ah sorry ... I have not been paying attention


AW: Spawn Protected - ElMelo - 13.04.2013

Very Simple, but nice


Re: Spawn Protected - Pottus - 13.04.2013

SetTimerEx ("SpawnProtection", 10000, false, "i", playerid); that is longer than 10 seconds.

Also, what if a player gets a weapon and starts shooting while invulnerable? You should turn off spawn protection as soon as they attack.