23.05.2015, 14:16
Let's say you have 2 teams, team A and team B. Declare 2 arrays with random spawn points, one for each team.
Then when you need to spawn the player, check if the player is in team A and choose a random spawn point from the first array. If the player is in team B, choose a random spawn point from the second array.
Then when you need to spawn the player, check if the player is in team A and choose a random spawn point from the first array. If the player is in team B, choose a random spawn point from the second array.