How to make cmd:makeadmin
#4

pawn Код:
YCMD:makeadmin(playerid, params[], help)
{
    #pragma unused help
    new id, lvl;
    if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 3)
    {
        if(sscanf(params, "ui", id, lvl)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /makeadmin [ID] [Level]");
        else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Invalid ID");
        else
        PlayerInfo[id][pAdminLevel] = lvl;
    }
    return 1;
}
Reply


Messages In This Thread
How to make cmd:makeadmin - by kingchandio - 01.08.2011, 14:01
Re: How to make cmd:makeadmin - by Jafet_Macario - 01.08.2011, 15:09
Re: How to make cmd:makeadmin - by Onyx - 01.08.2011, 15:24
Re: How to make cmd:makeadmin - by System64 - 01.08.2011, 15:26
Re: How to make cmd:makeadmin - by Onyx - 01.08.2011, 16:00
Re: How to make cmd:makeadmin - by kingchandio - 02.08.2011, 12:36

Forum Jump:


Users browsing this thread: 2 Guest(s)