[Tutorial] Make Simple Anti SpawnKill
#1

Hi
This Is my first tutorial to how can u make a simple anti spawnkill for your server:

1.goto your gamemode (.pwn) and find on top of that add this:
Code:
#define COLOR_GREEN 0x00FF00FF
[this define green color]

2.goto your gamemode (.pwn) and search for "forward"
under the new make this :
Code:
forward aspawnkill(playerid)
[this already show what do]

3. search for onplayerspawn and under that add this
Code:
SetPlayerHealth(playerid,99999);
SetTimer("aspawnkill",15000,false);
SendClientMessage(playerid,COLOR_GREEN,"Antisp: You are protected by server for 15 seconds.");
[this do : 1.set health of player to 9999 that any one cant kill for 15 seconds set timer for start 15 sec and send client message for send a message for this anti spawnkill]

4.at the final of the script add this :
Code:
public aspawnkill(playerid)
{
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid,COLOR_GREEN,"The Anti-time Spawn Kill over");
}
[it already back health of player to 100 and send player the spawnkill over]


sorry for my bad english.
Reply


Messages In This Thread
Make Simple Anti SpawnKill - by MehranGta - 24.02.2013, 05:59
Re: Make Simple Anti SpawnKill - by JaKe Elite - 24.02.2013, 06:15
Re: Make Simple Anti SpawnKill - by Gamer_007 - 24.02.2013, 06:25
Re: Make Simple Anti SpawnKill - by RajatPawar - 24.02.2013, 06:29
Re: Make Simple Anti SpawnKill - by MehranGta - 24.02.2013, 07:13
Re: Make Simple Anti SpawnKill - by JaKe Elite - 24.02.2013, 07:43
Re: Make Simple Anti SpawnKill - by MehranGta - 24.02.2013, 13:09
Re: Make Simple Anti SpawnKill - by rangerxxll - 11.03.2013, 20:49
Re: Make Simple Anti SpawnKill - by LarzI - 11.03.2013, 21:19
Re: Make Simple Anti SpawnKill - by DaTa[X] - 21.03.2013, 04:21

Forum Jump:


Users browsing this thread: 2 Guest(s)