/makeadmin cmd
#7

Quote:
Originally Posted by Xsyiaris
Посмотреть сообщение
pawn Код:
CMD:setlevel(playerid,params[])
{
    new ID, level;
    if(pInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid,COLOR_WHITE,"{B30000}[ERROR] {FFFFFF}You don't have access to this command.");
    if(sscanf(params,"ui", ID, level))
    {
        SendClientMessage(playerid,COLOR_WHITE,"{B30000}[ERROR] {FFFFFF}USAGE: /setlevel [playerid] [Level]");
        return 1;
    }
    pInfo[ID][pAdmin] = level;
    return 1;
}
Correction for the post above.
I don't see any issue - "i" works perfect as I use it..
"u" just means the username/ID, but it's optional.
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: 1 Guest(s)