Code:
#include <amxmodx>
#include <amxmisc>
#define KEY (1<<0)|(1<<1)
public plugin_init() {
register_menucmd(register_menuid("Test"), KEY, "key_pressed")
register_clcmd("test","test")
}
public test(id) {
showmenu(id, 1)
return PLUGIN_HANDLED
}
public showmenu(id1, id2) {
new name[32], menubody[48]
get_user_name(id2, name, 31)
format(menubody, 47, "Hello %s^n1. Yes^n2. No", name)
show_menu(id1, KEY, menubody, -1, "Test")
}
public key_pressed(id, key) {
client_print(id, print_chat, "pressed key: %d", key)
return PLUGIN_HANDLED
}
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>