#include <amxmodx>new bool:g_bJoinedTeam[ 33 ];public plugin_init() { register_event( "TeamInfo" , "fw_EvTeamInfo" , "a" );}public client_disconnect( id ){ g_bJoinedTeam[ id ] = false;}public fw_EvTeamInfo(){ new iPlayer = read_data( 1 ); if ( !g_bJoinedTeam[ iPlayer ] ) { new szTeam[ 2 ]; read_data( 2 , szTeam , charsmax( szTeam ) ); switch ( szTeam[ 0 ] ) { case 'T' , 'C': { //Put your code here, add 'S' if you also want to hook Spectator join g_bJoinedTeam[ iPlayer ] = true; } } }}