Set bool to true when spectator and false for all other? Please explain better\clearer if this is incorrect.
PHP Code:
UNASSIGNED = false
TERRORIST = false
CT = false
SPECTATOR = true
PHP Code:
new bool: g_bTeamSpec[ 33 ];
register_event( "TeamInfo" , "fw_EvTeamInfo" , "a" );
public fw_EvTeamInfo()
{
static szTeam[ 2 ]; read_data( 2 , szTeam , 1 );
g_bTeamSpec[ read_data( 1 ) ] = bool:( szTeam[ 0 ] == 'S' );
}
__________________