An empty menu if you still didnt came further.
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /test", "CmdTest")
}
public CmdTest(id)
{
new menu = menu_create("Menu title", "Menuhandler")
menu_additem(menu, "Option 1", "1")
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
}
public Menuhandler(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], name[64], acces, callback
menu_item_getinfo(menu, item, acces, data, charsmax(data), name, charsmax(name), callback)
new key = str_to_num(data)
switch (key)
{
case 1: client_print(id, print_center, "Awesome u pressed the first option!")
}
return PLUGIN_HANDLED
}
__________________