04.01.2013, 02:40
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
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];