VIP and ADMIN cmd - 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: VIP and ADMIN cmd (
/showthread.php?tid=414084)
VIP and ADMIN cmd -
megamind2067 - 08.02.2013
I would like to know how to make a command work for both vip and admins. Here are the variables(LuxAdmin System):
PHP код:
if(AccInfo[playerid][Level] >= 2)
and
PHP код:
if(AccInfo[playerid][pVip] >=1)
.
I've been trying to mimic this which i saw in the LuxAdmin Script but it did not work:
PHP код:
if(AccInfo[playerid][Level] >= 5 || IsPlayerAdmin(playerid))
and it works fine for them but not for me. Help please!
Re: VIP and ADMIN cmd -
Neil. - 08.02.2013
pawn Код:
if(AccInfo(playerid) (Level) >= 2 || AccInfo(playerid)(pVip) >=1)
Re: VIP and ADMIN cmd -
megamind2067 - 08.02.2013
._. what you have there cannot work for the two variables i gave you guys
Re: VIP and ADMIN cmd -
Neil. - 08.02.2013
Quote:
Originally Posted by megamind2067
._. what you have there cannot work for the two variables i gave you guys
|
I tried to compile this, and it did compile.
pawn Код:
if(AccInfo(playerid) (Level) >= 2 || AccInfo(playerid)(pVip) >=1)
Re: VIP and ADMIN cmd -
megamind2067 - 08.02.2013
ok thank you it worked but you put the regular brackets instead of the straight ones