I want to do for this cost:
PHP Code:
public ShowMenu(id)
{
new menu = menu_create("\rMenu of Extra Items:", "menu_handler");
menu_additem(menu, "\yExtra Grenades", "1", 0);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
}
public menu_handler(id, menu, item)
{
if( item == MENU_EXIT )
{
return PLUGIN_HANDLED;
}
new data[6], iName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
new key = str_to_num(data);
switch(key)
{
case 1:
{
client_printcolor(id, "/gItem/y: /ctrExtra Grenades");
client_printcolor(id, "/gDescription/y: /ctrGives an Extra Grenades");
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_smokegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
}
}
}
what i can do this ??