SA-MP Forums Archive
Making a command avaiable to certian admins? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Making a command avaiable to certian admins? (/showthread.php?tid=105337)



Making a command avaiable to certian admins? - acade - 28.10.2009

Hello,

Can someone tell me how I can correct this?

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



Re: Making a command avaiable to certian admins? - woot - 28.10.2009

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)



Re: Making a command avaiable to certian admins? - acade - 28.10.2009

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


Re: Making a command avaiable to certian admins? - woot - 28.10.2009

Then you did it correctly


Re: Making a command avaiable to certian admins? - acade - 28.10.2009

Thanks, read the wrong line of the complie.