SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (/showthread.php?tid=377694)



Help - Windrush - 15.09.2012

How To Have SpawnKill Protection
With Timer


Re: Help - Roach_ - 15.09.2012

It's very simple:
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerHealth(playerid, 999999.000);
    SetTimerEx("DisableGod", *SEC*, false, "i", playerid);

    return 1;
}

public DisableGod(playerid) return SetPlayerHealth(playerid, 100.000);



Re: Help - Windrush - 15.09.2012

the Sec is Millisecond or Second ?


Re: Help - Roach_ - 15.09.2012

Milisecond..