#include <amxmodx>

new g_msgTextMsg;

public plugin_init()
{
	// Register Message
	g_msgTextMsg = get_user_msgid( "TextMsg" );
	register_message( g_msgTextMsg, "handle_textmsg" );
}

public handle_textmsg()
{
	if( get_msg_args() < 3 ) return PLUGIN_CONTINUE;
	
	if( get_msg_argtype( 2 ) == ARG_STRING && get_msg_argtype( 3 ) == ARG_STRING )
	{
		new m_szMsg[20];
		get_msg_arg_string( 2, m_szMsg, charsmax(m_szMsg) );
		
		if( equal( m_szMsg, "#game_joined_game" ) )
		{
			return PLUGIN_HANDLED
		}
		// else if( equal( m_szMsg, "#game_disconnected" ) )
		// {
		// }
	}
	return PLUGIN_CONTINUE;
}
