SA-MP Forums Archive
[FilterScript] [FS] Anti Spawn Kill - 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] [FS] Anti Spawn Kill (/showthread.php?tid=298293)



[FS] Anti Spawn Kill - forgottenkings - 20.11.2011

Anit Spawn Kill
Description:This is a simple Anti Spawn Kill Script There is Not Much to It.

PHP Code:
#include a_samp
public OnPlayerSpawn(playerid)
{
    
SetPlayerHealth(playerid10000.0);
    
SendClientMessage(playerid0xFF0000AA"[INFO]:You have 5 seconds of Anti-Spawnkill protection");
    
SetPlayerChatBubble(playerid"[INFO]:Anti-Spawnkill protected player"0xFF0000AA100.010000);
    
SetTimerEx("AntiSpawnkill",5000,0,"i",playerid);
    return 
1;
}
forward AntiSpawnkill(playerid);
public 
AntiSpawnkill(playerid)
{
    
SetPlayerHealth(playerid100.0);
    
SendClientMessage(playerid0xFF0000AA"[INFO]:Anti-Spawnkill protection over, you are on your own now");
    return 
1;

PasteBin: Plz Click Me!

Direct: Plz Click Me!

Credits:Well its always a member of Forgotten Kings


Re: [FS] Anti Spawn Kill - Astralis - 20.11.2011

nice work omfg.
Adding to my server.



Dude ur going nicely with ur scripts!!


+rep'ed you.


Re: [FS] Anti Spawn Kill - forgottenkings - 20.11.2011

Oh Im Going Good :P


Re : [FS] Anti Spawn Kill - rbcrp - 12.12.2011

Simple, yet very useful (;


Re : [FS] Anti Spawn Kill - mehdi-jumper - 12.12.2011

I made a better version with the new callback from 0.3d OnPlayerTakeDamage

But it's proper too, good job


Re: [FS] Anti Spawn Kill - Destroyed - 03.06.2013

its good but why always say two times for both ?!


Re: [FS] Anti Spawn Kill - forgottenkings - 08.06.2013

thank


Re: [FS] Anti Spawn Kill - dEcooR - 08.06.2013

Dude you used chatbubble okay but you look here

SetPlayerChatBubble(playerid, "[INFO]:Anti-Spawnkill protected player", 0xFF0000AA, 100.0, 10000);
i think that its time for the bubble thext and your timer is for 5000 :P


Re: [FS] Anti Spawn Kill - VenomMancer - 16.10.2013

Quote:
Originally Posted by forgottenkings
View Post
Anit Spawn Kill
Description:This is a simple Anti Spawn Kill Script There is Not Much to It.

PHP Code:
#include a_samp
public OnPlayerSpawn(playerid)
{
    
SetPlayerHealth(playerid10000.0);
    
SendClientMessage(playerid0xFF0000AA"[INFO]:You have 5 seconds of Anti-Spawnkill protection");
    
SetPlayerChatBubble(playerid"[INFO]:Anti-Spawnkill protected player"0xFF0000AA100.010000);
    
SetTimerEx("AntiSpawnkill",5000,0,"i",playerid);
    return 
1;
}
forward AntiSpawnkill(playerid);
public 
AntiSpawnkill(playerid)
{
    
SetPlayerHealth(playerid100.0);
    
SendClientMessage(playerid0xFF0000AA"[INFO]:Anti-Spawnkill protection over, you are on your own now");
    return 
1;

PasteBin: Plz Click Me!

Direct: Plz Click Me!

Credits:Well its always a member of Forgotten Kings
Dont forget to add this :

Good works


Re: [FS] Anti Spawn Kill - kingofdemons - 16.10.2013

Is this from the sa-mp wiki?
But Good Job if you did it yourself there's not much to it.


Re: [FS] Anti Spawn Kill - HolyScripter - 16.10.2013

Hahaha nice logic , keep it up not bad for simple script
Just setplayerhealth to 1000 make timer after it setplayerhealth to 100