Posts: 131
Threads: 12
Joined: Aug 2013
Reputation:
0
Double check if your admin level is more than 6 again.
Posts: 106
Threads: 29
Joined: Apr 2009
Reputation:
0
na its not mate its 0 is none 6 is highest
Posts: 106
Threads: 29
Joined: Apr 2009
Reputation:
0
nope still says You're not Authorized to use that command
is there a way just to make it
if(AdminDuty[playerid] == 6)
Posts: 260
Threads: 4
Joined: Jun 2013
Reputation:
0
I don't quite get it, do you only want users having adm rank 6 to use it?
Posts: 106
Threads: 29
Joined: Apr 2009
Reputation:
0
yea i only want admins to be able to togbankrob, like to turn it on and off is what its doing
but its not letting me doit cause says im not authorized to use it
and i am admin lvl 6
Posts: 65
Threads: 12
Joined: May 2013
Reputation:
0
post us a code maybe we could help then.
Posts: 3,004
Threads: 12
Joined: May 2011
Quote:
Originally Posted by Kebab-
Change
Код:
if(PlayerInfo[playerid][pAdmin] < 6)
To
Код:
if(PlayerInfo[playerid][pAdmin] > 5)
You made it so players below Admin Level 6 can only perform the command.
|
if it's the highest then why not just use == instead ?
anyhow, check what level are you then by making a test command
pawn Код:
CMD:whatismylevel(playerid, params[]) {
SendClientMessage(player,-1,PlayerInfo[playerid][pAdmin]);
return 1;
}
By the code you've showed everything looks fine, so there is no way that the problem is in the command. (unless you didn't replace what kebab said to replace)