[FilterScript] [FS] Anti Spawn Kill
#1

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
Reply
#2

nice work omfg.
Adding to my server.



Dude ur going nicely with ur scripts!!


+rep'ed you.
Reply
#3

Oh Im Going Good :P
Reply
#4

Simple, yet very useful (;
Reply
#5

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

But it's proper too, good job
Reply
#6

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

thank
Reply
#8

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
Reply
#9

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
Reply
#10

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)