20.01.2014, 14:12
Hello,
I've been trying to make a command such as /setrank [playerid] [policeranklevel] available for both Admin level 3 and a Police Rank level 4. the problem is that unless you are both Admin level 3 and Police Rank 4 you are not able to set someone's rank.
What i want is, you dont have to be a level 3 admin to set someone rank, you have to be either both or one of them.
Here is what i tried.
Any help appreciated.
I've been trying to make a command such as /setrank [playerid] [policeranklevel] available for both Admin level 3 and a Police Rank level 4. the problem is that unless you are both Admin level 3 and Police Rank 4 you are not able to set someone's rank.
What i want is, you dont have to be a level 3 admin to set someone rank, you have to be either both or one of them.
Here is what i tried.
pawn Код:
if(pInfo[playerid][pAdmin] < 3 || pInfo[playerid][pRank] < 4 ) return SendClientMessage(playerid,COLOR_ADMWHITE, "SERVER: Unknown command.");