/makeadmin cmd
#4

pawn Код:
CMD:setlevel(playerid,params[])
{
    new ID, level;
   
    if(pInfo[playerid][pAdmin] < 3) // change 3 to owner level
    {
        SendClientMessage(playerid,COLOR_WHITE,"{B30000}[ERROR] {FFFFFF}You don't have access to this command.");
        return 1;
    }
   
    if(sscanf(params,"ii", ID, level))
    {
        SendClientMessage(playerid,COLOR_WHITE,"{B30000}[ERROR] {FFFFFF}USAGE: /setlevel [playerid] [Level]");
        return 1;
    }

    pInfo[ID][pAdmin] = level;

    return 1;
}
just finish it off with whatever you want to add in
Reply


Messages In This Thread
/makeadmin cmd - by Mriss - 24.02.2014, 08:08
Re: /makeadmin cmd - by Bingo - 24.02.2014, 08:12
Re: /makeadmin cmd - by BroZeus - 24.02.2014, 08:13
Re: /makeadmin cmd - by itsCody - 24.02.2014, 08:13
Re: /makeadmin cmd - by Mriss - 24.02.2014, 08:14
Re: /makeadmin cmd - by $Marco$ - 24.02.2014, 09:29
Re: /makeadmin cmd - by itsCody - 25.02.2014, 03:58

Forum Jump:


Users browsing this thread: 2 Guest(s)