public plugin_init(){ register_message(get_user_msgid("ShowMenu"), "message_show_menu") }
public message_show_menu(msgid, dest, id) { new tmp[32] get_msg_arg_string(4, tmp, 31) if(contain(tmp, "#Team_Select")==0){ //join team menu //return PLUGIN_HANDLED to block it }else if(contain(tmp, "#CT_Select")==0 || contain(tmp, "#Terrorist_Select")==0){ //join class menu //return PLUGIN_HANDLED to block it } return PLUGIN_CONTINUE }