Hello everyone, I wanted to ask you if you can help me or how to block the class selection menu and the VGUI menu.
Class selection menu: when I choose a team, I do not see the class / character, I automatically address the team I chose.
VGUI menu: block the VGUI menu and only the old menu can be used.
No more to say, thank you very much and I hope you can help me.
PHP Code:
public MessageShowMenu(msgid, dest, id)
{
static team_select[] = "#Team_Select"
static menu_text_code[sizeof team_select]
get_msg_arg_string(4, menu_text_code, sizeof menu_text_code - 1)
if(equal(menu_text_code, team_select))
{
if(get_pcvar_num(Enable) || bChangeteam)
{
set_task( 0.25, "ShowMenuTeams", id );
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}
//----------------------------------------------------------//
public MessageVGUIMenu(msgid, dest, id)
{
if (!(get_msg_arg_int(1)))
{
if(get_pcvar_num(Enable) || bChangeteam)
{
ShowMenuTeams(id)
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}