On The Top
new AntiSpawn[MAX_PLAYERS];
On The Spawn
AntiSpawn[playerid] = 1;
SetTimer("SpawnKilling", 5000, 0);
GameTextForPlayer(playerid," Spawn Protection ");
On OnPlayerDeath
if (AntiSpawn[playerid] == 1) {
SetPlayerHealth(killerid, 0);
SendClientMessage(killerid, COLOR_RED, " [Auto-Kill] Reason SpawnKilling ");
}
Now The Public
public SpawnKilling() {
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
if(AntiSpawn[i] == 1) {
SendClientMessage(i,COLOR_YELLOW,"Spawn Protection Offline!!");
AntiSpawn[i] = 0;
}
}
}
return 1;
}
SaW A BuGG RePoRt It NoW
Credits All By Me
Please Rate It!
Out Of 10