•  
     

Menu de armas - Counter Strike 1.6

Código: Selecionar todos

#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Wepows Menu"
#define VERSION "1.2"
#define AUTHOR "nerdbb"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /Armas_nerdbb", "szybkie_menu")
}
public szybkie_menu(id)
{
new menu = menu_create("[ Arams_nerdbb ] ^n \r\w[Menu de Armas\r]:", "menu_wybierz")
menu_additem(menu, "\wM4A1 + Deagle + Granadas + Colete + Defuse Kit", "1", 0)
menu_additem(menu, "\waK47 + Deagle + Granadas + Colete", "2", 0)
menu_additem(menu, "\wAWP + Deagle + Granadas + Colote + Defuse Kit", "3", 0)
menu_additem(menu, "\wAWP + Deagle + Granadas + Colote", "4", 0)
menu_additem(menu, "\waK47 + Usp + Granadas + Colete", "5", 0)
menu_additem(menu, "\wAWP + Usp + Granadas + Colete + Defuse Kit", "6" , 0)
menu_additem(menu, "\wM4A1 + Usp + Granadas + Colete + Defuse Kit", "7", 0)
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
}
public menu_wybierz(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new acces, callback
menu_item_getinfo(menu, item, acces, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1 : client_cmd(id,"defuser;vesthelm;m4a1;deagle;secammo;primammo;hegren;flash;flash;smoke")
case 2 : client_cmd(id,"vesthelm;ak47;deagle;secammo;primammo;hegren;flash;flash;smoke")
case 3 : client_cmd(id,"defuser;vesthelm;awp;deagle;secammo;primammo;hegren;flash;flash;smoke")
case 4 : client_cmd(id,"vesthelm;awp;deagle;secammo;primammo;hegren;flash;flash;smoke")
case 5 : client_cmd(id,"vesthelm;ak47;usp;secammo;primammo;hegren;flash;flash;smoke")
case 6 : client_cmd(id,"defuser;vesthelm;awp;usp;secammo;primammo;hegren;flash;flash;smoke")
case 7 : client_cmd(id,"defuser;vesthelm;m4a1;usp;secammo;primammo;hegren;flash;flash;smoke")
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public client_connect(id) client_cmd(id,"bind ^"v^" ^"say /Armas_nerdbb^"")

 
nossa menuzinho pequeno eimmm