Spawnkill = Dead
#8

Not tested but that should work
pawn Код:
new Protected[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
    Protected[playerid] = 1;
    SetTimer("Endprotect",3000,false);//change 3000 to the protect time you want
    return 1;
}
forward Endprotect(playerid);
public Endprotect(playerid)
{
    Protected[playerid] = 0;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(Protected[playerid] == 1)
    {
        SetPlayerHealth(killerid,0);
    }
    return 1;
}
Reply


Messages In This Thread
Spawnkill = Dead - by Blackazur - 21.12.2013, 16:15
Re: Spawnkill = Dead - by Konstantinos - 21.12.2013, 16:17
Re: Spawnkill = Dead - by CutX - 21.12.2013, 16:22
AW: Spawnkill = Dead - by Blackazur - 21.12.2013, 16:26
Re: Spawnkill = Dead - by CutX - 21.12.2013, 16:31
Re: Spawnkill = Dead - by MBilal - 21.12.2013, 16:33
AW: Spawnkill = Dead - by Blackazur - 21.12.2013, 16:34
Re: Spawnkill = Dead - by SilentSoul - 21.12.2013, 17:04
Re: Spawnkill = Dead - by NinjaWarrior - 21.12.2013, 17:57

Forum Jump:


Users browsing this thread: 2 Guest(s)