AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hou can i add items to menu? (https://forums.alliedmods.net/showthread.php?t=51243)

exelz 02-14-2007 07:47

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 1menuItemIdx <= 21menuItemIdx++)
 {
  
format(menuText23"Armors"menuItemIdx);
  
num_to_str(menuItemIdxmenuCmd2);
 
  
menu_additem(menumenuTextmenuCmd0);
 }
 
 
menu_setprop(menuMPROP_EXITMEXIT_ALL);
 
 
menu_display(idmenu0);
}
public 
menu_handler(idmenuitem)
{
 
menu_destroy(menu)
 
 return 
PLUGIN_HANDLED




All times are GMT -4. The time now is 00:36.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.