Making a command avaiable to certian admins?
#1

Hello,

Can someone tell me how I can correct this?

pawn Код:
if (PlayerInfo[playerid][pAdmin] == 3 || PlayerInfo[playerid][pAdmin] == 20)
Reply
#2

What do you exactly wanna do?
If you only want to allow it if the player is adminlevel 3-20 then use

pawn Код:
if (PlayerInfo[playerid][pAdmin] >= 3 && PlayerInfo[playerid][pAdmin] <= 20)
Reply
#3

I want it to do it so only: Admin level 3 and 20 can use this command. No other admin levels
Reply
#4

Then you did it correctly
Reply
#5

Thanks, read the wrong line of the complie.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)