[ZCMD]Admin command
#1

Hello mates,

I got another issue, When I type an admin command it says I'm not allowed to use that command but I'm admin, on my .ini file it says I'm admin level 4 but I can't use a command for admin level 3? Wtf

I tried everything but nothing works

Note: I just switched the command processor, so I'm kinda newbie with ZCMD :P

pawn Code:
CMD:setwanted(playerid,params[])
{
    new ID;
    new Wantedl;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"{FF0000}__**ERROR**__ {FFFFFF}You cannot use this command");
    if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid,-1,"{FF0000}__**ERROR**__ {FFFFFF}You cannot use this command");
    if(sscanf(params, "ui", ID,Wantedl)) return SendClientMessage(playerid,-1,"{FF0000}__**ERROR**__ {FFFFFF}Usage: /setwanted <playerid> <wantedlevel>");
    if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1,"{FF0000}__**ERROR**__ {FFFFFF}That player is not connected to the server!");
    SetPlayerWantedLevel(ID,Wantedl);
    return 1;
}
pawn Code:
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths,
    pWantedLevel,
    pScore,
    pBankCash,
    pBankAccount,
    pRobSkill
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply


Messages In This Thread
[ZCMD]Admin command - by [CG]Milito - 04.01.2013, 02:40
Re: [ZCMD]Admin command - by Lynn - 04.01.2013, 03:30
Re: [ZCMD]Admin command - by Zex Tan - 04.01.2013, 03:57
Re: [ZCMD]Admin command - by InActtive™ - 04.01.2013, 04:34
Re: [ZCMD]Admin command - by Franx - 04.01.2013, 04:53
Re: [ZCMD]Admin command - by InActtive™ - 04.01.2013, 05:09
Re: [ZCMD]Admin command - by [CG]Milito - 04.01.2013, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)