Easiest way to do this (that I can think of) is something like this
PHP Code:
menu_additem(Menu, "\rM4A1", "1")
menu_additem(Menu, "\rAK47", "2")
menu_additem(Menu, "M3", "3")
menu_additem(Menu, "Aug", "4")
menu_additem(Menu, "Famas", "5")
if(get_user_flags(id) & VIP_LEVEL_ACCES)
{
menu_additem(Menu, "\rMP5 Navy \w- \r[\yACCES V.I.P\r]", "6")
menu_additem(Menu, "\rXM1014 \w- \r[\yACCES V.I.P\r]", "7")
}
else
{
menu_additem(Menu, "\dMP5 Navy [\yACCES V.I.P]", "6")
menu_additem(Menu, "\dXM1014 [\yACCES V.I.P]", "7")
}
menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, Menu, 0);
And than I would do this in cases:
PHP Code:
case 6:
{
if(get_user_flags(id) & VIP_LEVEL_ACCES)
{
give_item(id, "");
}
else
{
WeaponMenu(id);
}
}
case 7:
{
if(get_user_flags(id) & VIP_LEVEL_ACCES)
{
give_item(id, "");
}
else
{
WeaponMenu(id);
}
}
__________________