Quote:
Originally Posted by . ThePro
joshknifer, Thanks buddy, I'll take a look.
fysiks, So if I use it's fine, see the example in a menu:
PHP Code:
public Cmd_Forum(id)
{
if(has_Used[id])
return HAM_IGNORED
if(has_flag(id, "a"))
{
new menu = menu_create("\yDescription","ShowMenuPlayer", 0)
menu_additem(menu,"\r\wDescription Case","1",0,-1)
}
return PLUGIN_HANDLED
}
|
If you use it with only one flag then it's the same as, but less efficient than, using:
PHP Code:
if( get_user_flags(id) & ADMIN_IMMUNITY )
Tip: Don't use HAM_ return values unless it is inside a Ham function. You should use PLUGIN_HANDLED where you are currently using a Ham return value.
__________________