God mode for admin
#3

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
pawn Код:
dcmd_god(playerid,params[])
{
    #pragma unused params
    if(AccInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid))
    {
        if(AccInfo[playerid][God] == 0)
        {
            AccInfo[playerid][God] = 1;
            SetPlayerHealth(playerid,100000);
            GivePlayerWeapon(playerid,16,50000);
            GivePlayerWeapon(playerid,26,50000);
            SendClientMessage(playerid,green,"|- GodMod ON -|");
            return SendCommandToAdmins(playerid,"God");
            }
            else
            {
            AccInfo[playerid][God] = 0;
            SendClientMessage(playerid,red,"|- GodMod OFF -|");
            SetPlayerHealth(playerid, 100);
        }
        return GivePlayerWeapon(playerid,35,0);
    }
    else return ErrorMessages(playerid, 6);
}
And what do you need above the script ? (#include , ...)
Reply


Messages In This Thread
God mode for admin - by Michael@Belgium - 03.01.2011, 08:39
Re: God mode for admin - by Ironboy - 03.01.2011, 08:43
Re: God mode for admin - by Michael@Belgium - 03.01.2011, 08:49
Re: God mode for admin - by Ironboy - 03.01.2011, 08:50
Re: God mode for admin - by Michael@Belgium - 03.01.2011, 08:53
Re: God mode for admin - by Ironboy - 03.01.2011, 08:55
Re: God mode for admin - by Think - 03.01.2011, 08:56
Re: God mode for admin - by Michael@Belgium - 03.01.2011, 09:06
Re: God mode for admin - by Think - 03.01.2011, 09:08
Re: God mode for admin - by Michael@Belgium - 03.01.2011, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)