SA-MP Forums Archive
Command question - 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)
+--- Thread: Command question (/showthread.php?tid=458456)



Command question - Blackazur - 16.08.2013

Hello i have a question with this if query, what i will: that you can use this command if you are one of them so if you vip and not admin you can use it and if you admin and not vip you can use it and if you vip and admin you can use it too, i tried something, but it don't working:

Код:
if(pInfo[playerid][pAdminLevel] >= 2 && pInfo[playerid][pVipLevel] >= 1)
	{
Can anyone help me?


Re: Command question - RedJohn - 16.08.2013

pawn Код:
if(pInfo[playerid][pAdminLevel] < 2 || pInfo[playerid][pVipLevel] < 1) return SendClientMessage(playerid, 0xFF0000FF, "You can't use this command.");
I like this way.

If you are admin and if you are not VIP you can use it.

If you are VIP and if you are not admin you can use it.