/setadmin and /setvip etc.
#3

This is the one Im using. Edit it by yourself:
pawn Code:
COMMAND:makeadmin(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,".:: You are not authorized to use this command ::.");
    new id, lvl;
    if(sscanf(params, "ui", id, lvl)) return SendClientMessage(playerid, COLOR_WHITE, ""#COL_DGREY"[CMD] / "#COL_SGREY"[PlayerID/PartOfName] [Level]");
    else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "Invalid ID");
    else if(lvl > 1) return SendClientMessage(playerid, COLOR_WHITE, ""#COL_ORANGE"[ADMIN]"#COL_LRED" Administrator level cannot be higher then 1!");
    else
    {
     PlayerInfo[id][Adminlevel] = lvl;
    }
    return 1;
}
Reply


Messages In This Thread
/setadmin and /setvip etc. - by Azzeto - 30.09.2011, 23:56
Re: /setadmin and /setvip etc. - by GrimR - 01.10.2011, 00:13
Re: /setadmin and /setvip etc. - by Kingunit - 01.10.2011, 00:14
Re: /setadmin and /setvip etc. - by Azzeto - 01.10.2011, 00:38
Re: /setadmin and /setvip etc. - by grand.Theft.Otto - 01.10.2011, 02:07
Re: /setadmin and /setvip etc. - by Azzeto - 01.10.2011, 02:22
Re: /setadmin and /setvip etc. - by Pharrel - 01.10.2011, 02:25
Re: /setadmin and /setvip etc. - by Azzeto - 01.10.2011, 02:50
Re: /setadmin and /setvip etc. - by Pharrel - 01.10.2011, 02:54
Re: /setadmin and /setvip etc. - by Azzeto - 01.10.2011, 02:57
Re: /setadmin and /setvip etc. - by GrimR - 01.10.2011, 03:19
Re: /setadmin and /setvip etc. - by DRIFT_HUNTER - 01.10.2011, 03:46
Re: /setadmin and /setvip etc. - by Azzeto - 01.10.2011, 04:00

Forum Jump:


Users browsing this thread: 2 Guest(s)