Hou can i add items to menu?
i got this menu code
I got armors but i need only one of them and 1 weapons and hou can i to like this that when armors is selected then it will show list of armors that adds armor
PLZ HELP!!!! +karma ho will help me!!
PHP Code:
#include <amxmodx> public plugin_init() { register_plugin("Dark Mod", "1.0", "DaRkkkk"); register_clcmd("show_me", "_cmd_show_me"); } public _cmd_show_me(id) { new menu = menu_create("Dark Mod", "menu_handler"); new menuText[24], menuCmd[3]; for (new menuItemIdx = 1; menuItemIdx <= 21; menuItemIdx++) { format(menuText, 23, "Armors", menuItemIdx); num_to_str(menuItemIdx, menuCmd, 2); menu_additem(menu, menuText, menuCmd, 0); } menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0); } public menu_handler(id, menu, item) { menu_destroy(menu) return PLUGIN_HANDLED }
|