19.11.2016, 15:17
Quote:
I have problem in this command! When i am admin lvl 6 or 5,4,3,2 i am not allowed to use this command but i am admin lol
When i set my level to 0 or 1 i can use it! What is the problem! This command must be allowed only the use admin level 2 to 6! How to fix that Код:
CMD:aheal(playerid, params[]) { f(PlayerInfo[playerid][Level] >= 2) return SCM(playerid,0xFF8284FF,"[ERROR]: You are not allowed to use this command!"); SetPlayerHealth(playerid, 100); return 1; } |
pawn Код:
if(PlayerInfo[playerid][Level] <= 1) return SCM(playerid,0xFF8284FF,"[ERROR]: You are not allowed to use this command!");
Quote:
<= 1 |
You were basically doing this
Quote:
>= 2 |