Signature
stock access(id, level){ if(level == ADMIN_ADMIN) { return is_user_admin(id); } else if(level == ADMIN_ALL) { return 1; } return(get_user_flags(id) & level);}
Description
Returns if the client has the specified admin flags.
Parameters
- id — Client index
- level — Required admin flags
Returns
1 if client has the admin flags, 0 otherwise