switch( get_user_team(iPlayer )) { case 0: { // unassigned,spectator } case 1: { // terrorist } case 2: { // counter-terrorist } }