Алексеич,
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "Weapon by SoffRick"
#define VERSION "1.0"
#define AUTHOR "
http://make-amxserv.ru/plugins/9083-jailbreak-extreme-ct-weapon.html"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "runda", 1);
}
public runda(id){
set_task(0.1, "menu", id)
}
public menu(id)
{
new menu = menu_create("\yВЫБОР ОРУЖИЯ\w","wybor_menu")
menu_additem(menu,"\rAK47\w+Deagle+Броня","1",0)
menu_additem(menu,"\rM4A1\w+Deagle+Броня","2",0)
menu_setprop(menu,MPROP_EXIT,MEXIT_ALL)
menu_display(id,menu,0)
}
public wybor_menu(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 2 : {
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
give_item(id, "weapon_m4a1")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "item_assaultsuit")
}
case 1 : {
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_ak47")
give_item(id, "weapon_deagle")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_762nato")
give_item(id, "ammo_762nato")
give_item(id, "ammo_762nato")
give_item(id, "item_assaultsuit")
}
}
return PLUGIN_HANDLED
}
/*
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "item_assaultsuit")
*/