I just tried MENU_KEY_0 in a small test plugin:
Code:
public message_resethud(id)
{
show_menu(id, MENU_KEY_0, "Accept?", -1, "blah!")
}
public plugin_init()
{
register_plugin("test", "0.1", "")
register_event("ResetHUD", "message_resethud", "be")
register_menucmd(register_menuid("blah!"), MENU_KEY_0, "player_vote")
}
public player_vote(id, key)
{
client_print(0, print_chat, "Selection accepted!")
return PLUGIN_HANDLED
}
0 does not close the menu or make a selection. Only MENU_KEY_1-9 work if I set MENU_KEY1-9 for both register_menuid and show_menu...
Edit: And 0 is bound to slot0.
Stu