VIP and ADMIN cmd
#1

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] >= || IsPlayerAdmin(playerid)) 
and it works fine for them but not for me. Help please!
Reply
#2

pawn Код:
if(AccInfo(playerid) (Level) >= 2 || AccInfo(playerid)(pVip) >=1)
Reply
#3

._. what you have there cannot work for the two variables i gave you guys
Reply
#4

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)
Reply
#5

ok thank you it worked but you put the regular brackets instead of the straight ones
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)