/setadmin command help
#3

pawn Код:
CMD:setadmin(playerid, params[])
{
    new ID , level;
    if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid, -1, "{FF0000}[ERROR]:{FAF5F5}You are not{FF0000} Administrator {FAF5F5} to use this command");
    if (sscanf(params, "ui", ID,level))
    {
    return SendClientMessage(playerid, 0xFF0000AA, "{FF0000}[SYSTEM USAGE]:{FAF5F5}/setadmin [playerid] [Level]");
    }
    string[126];
    format (string, sizeof (string),"{FF0000}[Administrator]:{FAF5F5}%s has promote you to amdin level %d!",GetPlayerNameEx(playerid),level);
    SendClientMessage(ID,-1,string);
    format (string, sizeof (string),"{FF0000}[Administrator command]:{FAF5F5}you have promote %s to vip player!",GetPlayerNameEx(ID));
    SendClientMessage(playerid,-1,string);
    PlayerInfo[ID][pAdminLevel] = level;
    return 1;
}
Didn't Test , but i think it gonna work.
Reply


Messages In This Thread
/setadmin command help - by SilentSoul - 28.08.2013, 18:00
Re: /setadmin command help - by ProjectMan - 28.08.2013, 18:12
Re: /setadmin command help - by nor15 - 28.08.2013, 18:13
Re: /setadmin command help - by SilentSoul - 28.08.2013, 18:15

Forum Jump:


Users browsing this thread: 3 Guest(s)