#include <amxmodx>[/I]
[I]
public plugin_init()
{
register_plugin("Menu","1.0","Afk")
register_clcmd("menu_serva","menu_serva")
register_clcmd("menu_serva2","menu_serva2")
}
public client_authorized(id)
{
client_cmd(id, "bind ^"F3^" ^"menu_serva^"")
}
public menu_serva(id)
{
menu = menu_create("\d[\r!\d]\w Меню Сервера!^n\d[\r!\d]\r Мы ВКонтакте:\wvk.com/this_public_baby", "menu_func")
menu_additem( menu,"\wБонус ANEW", "1", 0)
menu_additem( menu,"\wОбнулить счет", "2", 0)
menu_additem( menu,"\wНоминировать Карту", "3", 0)
menu_additem( menu,"\wГолосовать за смену Карты", "4", 0)
menu_additem( menu,"\wГолосовать за Бан игрока", "5", 0)
menu_additem( menu,"\wЗаткнуть игрока", "6", 0)
menu_additem( menu,"\wМой Ранк", "7", 0)
menu_additem( menu,"\rVIP MENU", "8", 0)
menu_addblank( menu, 0)
menu_additem( menu,"Далее \r~>", "9", 0)
menu_additem( menu,"Выход", "0", 0)
menu_setprop( menu, MPROP_PERPAGE, 0)
menu_display(id, menu, 0)
return PLUGIN_CONTINUE
}
public menu_func(id, menu, key)
{
new accss, clbck, data[6], name[64], itm
menu_item_getinfo(menu, key, accss, data, 5, name, 63, clbck)
itm = str_to_num(data)
switch(itm)
{
case 1:client_cmd(id, "say /anew")
case 2:client_cmd(id, "say /rs")
case 3:client_cmd(id, "say /maps")
case 4:client_cmd(id, "say /rtv")
case 5:client_cmd(id, "say /voteban")
case 6:client_cmd(id, "say /mute")
case 7:client_cmd(id, "say /top15")
case 8:client_cmd(id, "say /vipmenu")
case 9:client_cmd(id, "menu_serva2")
case 0: menu_destroy(menu)
}
return PLUGIN_CONTINUE
}
public menu_serva2(id)
{
menu2 = menu_create("d[\r!\d]\w Меню Сервера!^n\d[\r!\d]\r Мы ВКонтакте:\wvk.com/this_public_baby", "menu_func2")
menu_additem( menu2,"\wГолосование за мут игрока", "1", 0)
menu_additem( menu2,"\wЛучшие игроки сервера", "2", 0)
menu_additem( menu2,"\wСписок заданий", "3", 0)
menu_additem( menu2,"\wРусский чат", "4", 0)
menu_additem( menu2,"\wИнформация о админке", "5", 0)
menu_additem( menu2,"\wИнформация о вип", "6", 0)
menu_addblank( menu2, 0)
menu_additem( menu2,"\r<~ \wНазад", "9", 0)
menu_additem( menu2,"Выход", "0", 0)
menu_setprop( menu2, MPROP_PERPAGE, 0)
menu_display(id, menu2, 0)
return PLUGIN_CONTINUE
}
public menu_func2(id, menu, key)
{
new accss, clbck, data[6], name[64], itm
menu_item_getinfo(menu, key, accss, data, 5, name, 63, clbck)
itm = str_to_num(data)
switch(itm)
{
case 1:client_cmd(id, "say /votegag")
case 2:client_cmd(id, "say /top15")
case 3:client_cmd(id, "say /jobs")
case 4:client_cmd(id, "say /rus")
case 5:client_cmd(id, "say /adminka")
case 6:client_cmd(id, "say /vipka")
case 9:client_cmd(id, "menu_serva")
case 0: menu_destroy(menu2)
}
return PLUGIN_CONTINUE
}