14.03.2011, 17:41
try this
pawn Код:
public OnPlayerSpawn(playerid)
{
SetTimerEx("AntiSpawnKill",10000,false,"i",playerid);
Antikill[playerid] = true;
return 1;
}
pawn Код:
forward AntiSpawnKill(playerid);
public AntiSpawnKill(playerid)
{
if(Antikill[playerid] == true)
{
SetPlayerHealth(playerid,100);
SendClientMessage(playerid, 0xFF0000AA, "Anti-Spawnkill protection is over now!");
Antikill[playerid] = false;
}
return 1;
}