All people use this to check if player is opening the team menu with VGUI:
but Why number 2?? Are there other numbers to check other VGUI menus?
I tried to find something but nothing,
only this related to get_user_msgid("ShowMenu"): https://forums.alliedmods.net/showthread.php?t=130708?t=130708
Код:
register_message(get_user_msgid("VGUIMenu"), "message_VGUI");
public message_VGUI(msg, des, rec)
{
if (get_msg_arg_int(1) != 2) // not Jointeam VGUI menu
{
return PLUGIN_CONTINUE;
}
// show my cool new team menu
return PLUGIN_HANDLED;
}
but Why number 2?? Are there other numbers to check other VGUI menus?
I tried to find something but nothing,
only this related to get_user_msgid("ShowMenu"): https://forums.alliedmods.net/showthread.php?t=130708?t=130708