god mode on /off
#10

pawn Код:
CMD:gmodeon(playerid, params[]) //god mode on command
{
    if(IsPlayerAdmin(playerid))
    {
        SetPlayerHealth(playerid, 100000);
        SetPlayerArmour(playerid, 100000);
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
    }
    return 1;
}

CMD:gmodeoff(playerid, params[]) //god mode off command
{
    if(IsPlayerAdmin(playerid))
    {
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
    }
    return 1;
}
Simple enough.
Reply


Messages In This Thread
god mode on /off - by pepp1 - 05.08.2008, 06:49
Re: god mode on /off - by Puffmac - 05.08.2008, 06:53
Re: god mode on /off - by Dragan - 05.08.2008, 07:00
Re: god mode on /off - by GTAgetaway - 16.01.2009, 09:50
Re: god mode on /off - by flames - 16.01.2009, 09:56
Re: god mode on /off - by DMSOrg - 16.01.2009, 11:17
Re: god mode on /off - by Mariooo - 17.07.2011, 14:30
Re: god mode on /off - by robintjeh - 17.07.2011, 14:35
Re: god mode on /off - by Wesley221 - 17.07.2011, 14:37
Re: god mode on /off - by Kush - 17.07.2011, 15:50

Forum Jump:


Users browsing this thread: 2 Guest(s)