|
New Member
|

09-24-2011
, 06:28
Furien Menu For CT
|
#1
|
Hello,
I want show this menu, for anti furien team and wanted to press the letter "M" to open the menu and also wanted to open the first time no longer shows the menu but, i don't know .....
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "Armas"
#define AUTHOR "MaxDK"
#define VERSION "1.0"
new g_iOpened[33]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /armas","Armas")
register_clcmd( "say_team /armas","Armas")
public armas( id )
{
if( is_user_alive( id ) )
return PLUGIN_HANDLED;
}
public Armas(id)
{
new menu = menu_create("\rAntiFurien: :", "menu_handler");
menu_additem(menu, "AK47", "1", 0);
menu_additem(menu, "M4A1", "2", 0);
menu_additem(menu, "MP5 Navy", "3", 0);
menu_additem(menu, "XM1014", "4", 0);
menu_additem(menu, "M3", "5", 0);
menu_additem(menu, "AWP ", "6", 0);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
}
public menu_handler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
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:
{
give_item(id, "weapon_ak47")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id,CSW_AK47,90)
cs_set_user_bpammo(id,CSW_DEAGLE,35)
}
case 2:
{
give_item(id, "weapon_m4a1")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id,CSW_M4A1,90)
cs_set_user_bpammo(id,CSW_DEAGLE,35)
}
case 3:
{
give_item(id, "weapon_mp5navy")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id,CSW_MP5NAVY,120)
cs_set_user_bpammo(id,CSW_DEAGLE,35)
}
case 4:
{
give_item(id, "weapon_xm1014")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id,CSW_XM1014,32)
cs_set_user_bpammo(id,CSW_DEAGLE,35)
}
case 5:
{
give_item(id, "weapon_m3")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id,CSW_M3,32)
cs_set_user_bpammo(id,CSW_DEAGLE,35)
}
case 6:
{
give_item(id, "weapon_awp")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id,CSW_M3,32)
cs_set_user_bpammo(id,CSW_AWP,35)
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
Please Help Me
|
|