View Single Post
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 11-08-2018 , 11:44   Re: ADMIN_LEVEL_H settings
Reply With Quote #4

I didnt get your problem can you please explain more ...
If you are asking that if a player just got ADMIN_LEVEL_H flag and if he can open a menu and change any settings then ofcourse he can

Example :
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("PLUGIN""1.0""AUTHOR")
    
register_clcmd("say /open""createMenu")
}

public 
createMenu(id)
{
    if(!(
get_user_flags(id) & ADMIN_LEVEL_H)) return;
    new 
menu menu_create("My Menu""menu_handler")
    
menu_additem(menu"Hello")
    
menu_additem(menu"world")

    
menu_display(idmenu)
}

public 
menu_handler(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_CONTINUE
    
}
    return 
PLUGIN_HANDLED

He can open this menu and can change anything mentioned in the menu
instinctpt1 is offline