shehzad1234
12-12-2016, 09:32
Hi all :)
Hey any one add COST and Adrenaline in my testing code please..?? player open menu just then menu top Player money and player cost show
Adrenaline api help >>click here<< (https://forums.alliedmods.net/showthread.php?t=132115#api)
// Generated with v3x's AMXX Menu Generator
#include <amxmodx>
public plugin_init()
{
register_plugin("My Menu", "1.0", "Me");
register_clcmd("say /shoptest", "ShowMenu", _, "");
}
public ShowMenu(id)
{
new menu = menu_create("Special Weapons :^n Your Cost %d ^nYour Adrenaline %d", "mh_MyMenu");
menu_additem(menu, "sho test", "", 0); // case 0
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_HANDLED;
}
public mh_MyMenu(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}
new command[6], name[64], access, callback;
menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);
switch(item)
{
case 0: client_print(id, print_chat, "You have selected sho test");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
http://i63.tinypic.com/1442mvd.png
Hey any one add COST and Adrenaline in my testing code please..?? player open menu just then menu top Player money and player cost show
Adrenaline api help >>click here<< (https://forums.alliedmods.net/showthread.php?t=132115#api)
// Generated with v3x's AMXX Menu Generator
#include <amxmodx>
public plugin_init()
{
register_plugin("My Menu", "1.0", "Me");
register_clcmd("say /shoptest", "ShowMenu", _, "");
}
public ShowMenu(id)
{
new menu = menu_create("Special Weapons :^n Your Cost %d ^nYour Adrenaline %d", "mh_MyMenu");
menu_additem(menu, "sho test", "", 0); // case 0
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_HANDLED;
}
public mh_MyMenu(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}
new command[6], name[64], access, callback;
menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);
switch(item)
{
case 0: client_print(id, print_chat, "You have selected sho test");
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
http://i63.tinypic.com/1442mvd.png