In order to achieve that you have to know to which team the player belongs. I assume you have that information in player objects with a property team_id. Then you have just to filter your options by team_id.