SA-MP Forums Archive
{esle} - 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: {esle} (/showthread.php?tid=375302)



{esle} - Scott Zulkifli - 06.09.2012

pawn Код:
new aGod[MAX_PLAYERS];
CMD:god(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        if(aGod[playerid] == 0)
        {
            SetPlayerHealth(playerid, 100000);
            SetPlayerArmour(playerid, 100000);
            aGod[playerid] = 1;
            }
            else
            {
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 100);
            aGod[playerid] = 0;
        }
    }
}
its work..but :