Aleku. they said wronger than you , you did good but did you define that value?
PHP Code:
#define VIP_LEVEL_ACCES ADMIN_....
If you did then idk, you can make in other way like in the handle
and if you didn't ,do it and your code will be working
PHP Code:
case x: if(get_user_flags(id) & VIP_LEVEL_ACCESS)
{
giveitem(id)
}
else client_print(id,print_chat,"Not Vip Member")
and btw for everyone is the next message
Every if(get_user_flags(id) & x) has to do a else after you wrote the code because then the code will let anyone use it bcs it's like without else it's creating a invisible one that does the same thing, i found out this thing when i was doing my menu. and btw you could also do like this
PHP Code:
if(get_user_flags(id) & VIP_LEVEL_ACCESS)
{
menu_additem(Menu,"lala","key")
}
else menu_additem(Menu,"\dlala","")
as you seen in the third param i didn't put anything else than
"" so the item would do nothing and that
/d will make the item look like it can't be accesed.