Quote:
Originally Posted by fysiks
The proper way to handle this is to use callbacks like I said in my previous post. It should be quite simple actually. The callback function would only need to be a single line:
Code:
public menuitem_callback( id, menu, item )
{
return (get_user_flags(id) & VIP_LEVEL_ACCESS) ? ITEM_IGNORE : ITEM_DISABLED;
}
Doing it this way will show the items but they will be grey and they can't be selected. So, it will be obvious that they exist but can't be chosen.
|
and btw dw bcs i didn't say about you about the thing with
Wronger, you showed also another simple method that can be super simple used but not everytime is needed a callback