God mode
#1

pawn Код:
CMD:god(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 2)
    {
        SetPlayerHealth(playerid, 9999999);
        SetPlayerArmour(playerid, 9999999);
        SendClientMessage(playerid, COLOR_WHITE, "God Mode {009900}[On]");
        aGod[playerid] = 1;
        }
        else
        {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        SendClientMessage(playerid, COLOR_WHITE, "God Mode {CC0000}[Off]");
        aGod[playerid] = 0;
    }
    return 1;
}
I tried this can not return to the off mode.
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)