Hello, I’m trying to set spawn points for each team in my gamemode, but team.SetSpawnPoint seem not to work. Here is the code:
[lua]function GM:CreateTeams()
TEAM_WAIT = 1
team.SetUp( TEAM_WAIT, "Waiting", Color( 0, 0, 255 ) )
team.SetSpawnPoint( TEAM_WAIT, "info_player_counterterrorist" )
TEAM_BUILD = 2
team.SetUp( TEAM_BUILD, "Builders", Color( 255, 150, 0 ) )
team.SetSpawnPoint( TEAM_BUILD, "info_player_counterterrorist" )
TEAM_ATTACK = 3
team.SetUp( TEAM_ATTACK, "Attackers", Color( 255, 150, 150 ) )
team.SetSpawnPoint( TEAM_ATTACK, "info_player_terrorist" )
end[/lua]