/setadmin and /setvip etc.
#7

pawn Code:
CMD:makeadmin(playerid, params[]){
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_GRAY,"ERROR: You're not authorized to use this command!");
    new id, lvl;
    if(sscanf(params, "ui", id, lvl)) return SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /makeadmin [PlayerID/PartOfName] [Level]");
    else if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid ID");
    else
    {
     PlayerInfo[playerid][pAdmin] = lvl;
    }
    return 1;
}
Try like this
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)