Не понимаю в чем проблема, вроде инклуды все которые нужны. но все равно пишеt : undefited symbol: "weapon_..."
Код:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Admin"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /vipmenu" , "vipmenu")
}
public vipmenu(id)
{
new vipmen = menu_create("Vip Menu", "vip")
menu_additem(vipmen, "100 HP", "1")
menu_additem(vipmen, "Desert-Eagle", "2")
menu_additem(vipmen, "Ak-47", "3")
menu_additem(vipmen, "M4A1", "4")
menu_additem(vipmen, "AWP", "5")
menu_additem(vipmen, "Grenades", "6")
menu_setprop(vipmen, MPROP_EXIT, "Exit")
menu_display(id, vipmen, 0)
return PLUGIN_HANDLED
}
public vip(id, vipmenu, item)
{
if(get_user_flags(id) & ADMIN_ADMIN)
{
if(item == MENU_EXIT)
{
menu_destroy(vipmenu)
return PLUGIN_HANDLED
}
new data[6], iName[64], access, callback
menu_item_getinfo(vipmenu, item, access, data, 5 ,iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:
{
if(get_user_health(id) != 100)
{
set_user_health(id, 100)
}
else
{
client_print(id,print_chat, "You health: 100")
}
}
case 2:
{
give_item(id, weapon_deagle)
}
case 3:
{
give_item(id, weapon_ak47)
}
case 4:
{
give_item(id, weapon_m4a1)
}
case 5:
{
give_item(id, weapon_awp)
}
case 6:
{
give_item(id, weapon_hegrenade)
give_item(id, weapon_flashbang)
give_item(id, weapon_smokegrenade)
}
}
}
}