Raised This Month: $ Target: $400
 0% 

Hou can i add items to menu?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
exelz
Member
Join Date: Oct 2006
Old 02-14-2007 , 07:47   Hou can i add items to menu?
Reply With Quote #1

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

__________________
exelz is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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