i already tried that, and it let the skin menu comes up D:
edit: im using this to change team:
PHP Code:
engclient_cmd( id, "jointeam", "2" )
engclient_cmd( id, "joinclass", "1" )
edit2: nvm i found what i was looking...
PHP Code:
new const Block_Team[] = {
"#Team_Select",
"#Team_Select_Spect",
"#Terrorist_Select",
"#CT_Select",
"#IG_Team_Select"
}
public message_show_menu(msgid, dest, id)
{
static menu_text_code[35]
get_msg_arg_string(4, menu_text_code, sizeof menu_text_code - 1)
for( new i = 0; i < sizeof Block_Team; i++ ) {
if( equal( menu_text_code, Block_Team[ i ] ) ) {
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}
public message_vgui_menu(msgid, dest, id)
{
if( !( get_msg_arg_int(1) != TEAM_SELECT_VGUI_MENU_ID ) )
return PLUGIN_HANDLED
return PLUGIN_CONTINUE
}
}
__________________