I use GHW weapon plugin . but it can't use for some player using VGUI menu .
So I test for VGUI menu .
register_menucmd(-28, 511, "hook_menu0")
register_menucmd(-29, 511, "hook_menu1")
register_menucmd(-30, 511, "hook_menu2")
register_menucmd(-32, 511, "hook_menu3")
register_menucmd(-31, 511, "hook_menu4")
register_menucmd(-33, 511, "hook_menu5")
register_menucmd(-34, 511, "hook_menu6")
These have no effect .
I continue to test:
register_message(get_user_msgid("VGUIMenu"), "message_vgui_menu")
public message_vgui_menu(msgid, dest, id)
{
static msgarg1
msgarg1 = get_msg_arg_int(1)
client_print(id, print_center, "TEST: vgui_menu <%d> ", msgarg1)
return PLUGIN_CONTINUE;
}
Results: Players join team menu is 2, players choose the model menu is 27. But open the purchase menu, and the purchase of various types of weapons will not work .
Why is this so? Client version is 4554 .
I think the command to manage arms purchases by the rules.
But I do not know all the commands can buy weapons .
Like "awp" and "magnum", both can buy awp .
"fn57" "fiveseven" : Effect is the same .
Who can tell me the server can accept all command for the purchase of weapons . Thanks !
|