View Single Post
Kolapsicle
Senior Member
Join Date: Oct 2014
Old 05-23-2019 , 13:01   Re: grey out menu entries
Reply With Quote #4

Using GetUserAdmin to return an AdminId methodmap, you can check for AdminFlag's with HasFlag. The second parameter, AdmAccessMode let's you determine if the client has a particular flag, or gets the flag from a group.

PHP Code:
Menu.AddItem("info""display"GetUserAdmin(client).HasFlag(Admin_ReservationAccess_Real) ? ITEMDRAW_DEFAULT ITEMDRAW_DISABLED); 

Last edited by Kolapsicle; 05-23-2019 at 13:17.
Kolapsicle is offline