God mode
#3

pawn Код:
CMD:god(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 2)
    {
        if(aGod[playerid] == 0)
        {
            SetPlayerHealth(playerid, 9999999);
            SetPlayerArmour(playerid, 9999999);
            SendClientMessage(playerid, COLOR_WHITE, "God Mode {009900}[On]");
            aGod[playerid] = 1;
        }
        else if(aGod[playerid] == 1)
        {
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 100);
            SendClientMessage(playerid, COLOR_WHITE, "God Mode {CC0000}[Off]");
            aGod[playerid] = 0;
        }
       else return SendClientMessage(playerid, 0xFF0000FF, "You are not authorised to use this command!");
    }
    return 1;
}
Reply


Messages In This Thread
God mode - by Scott Zulkifli - 08.12.2012, 07:30
Re: God mode - by YoYo123 - 08.12.2012, 07:54
Re: God mode - by Threshold - 08.12.2012, 07:59
Re: God mode - by Konstantinos - 08.12.2012, 09:34
Re: God mode - by JaKe Elite - 08.12.2012, 10:29
Re: God mode - by Konstantinos - 08.12.2012, 10:33

Forum Jump:


Users browsing this thread: 1 Guest(s)