hello blz. well i would like someone to help me to put this sma plugin for steam and for steam. the menu only opens for steam and for steam does not open the menu using the "n" key for steam just by typing say there it opens the menu i would like to put it like in steam just press the n key for steam it opens fast. ..
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "4FUN Menu"
#define VERSION "1.0"
#define AUTHOR "Fabiano"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /brisados_menu", "szybkie_menu")
}
public szybkie_menu(id)
{
new menu = menu_create("\ Brisados \Menu Rapido:", "menu_wybierz")
menu_additem(menu, "\Top15", "1", 0)
menu_additem(menu, "\Rank", "2", 0)
menu_additem(menu, "\Servidores Brisados", "3", 0)
menu_additem(menu, "\vip", "4", 0)
menu_additem(menu, "\resetscore", "5", 0)
menu_additem(menu, "\Admins Online", "6", 0)
menu_additem(menu, "\Contato Dono", "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,"say /top15")
case 2 : client_cmd(id,"say /rank")
case 3 : client_cmd(id,"say /serve")
case 4 : client_cmd(id,"say /bsdvip")
case 5 : client_cmd(id,"say /resetscore")
case 6 : client_cmd(id,"say /admin")
case 7 : client_cmd(id,"say /skype")
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public client_connect(id) client_cmd(id,"bind ^"n^" ^"say /brisados_menu^"")
|