21.12.2013, 17:57
Код:
Antispawnkill(playerid); //put on onplayerspawn stock Antispawnkill(playerid) //put on the bottom of the script { new spawnkill; { SetPlayerHealth(playerid,99999); SendClientMessage(playerid, 0x00FF00AA, "You are now protected by anti spawn-kill!"); SetTimerEx("StopAntiSpawnKill",5000,0,"i",playerid); } return spawnkill; } forward StopAntiSpawnKill(playerid); public StopAntiSpawnKill(playerid) { SetPlayerHealth(playerid,100); SendClientMessage(playerid, 0xFF0000AA, "Spawn kill protection is now over!"); return 1; }