Spawn points?

Hi i am trying to get Team 1 to use “info_player_terrorist” as a spawn point and Team 2 to use “info_player_counterterrorist” but it isn’t working.
Here is my shared.lua file.


 GM.Name 		= "Test" //Set the gamemode name 
 GM.Author 		= "blah" //Set the author name 
 GM.Email 		= "N/A" //Set the author email 
 GM.Website 	= "N/A" //Set the author website 
 
function GM:CreateTeams()

	// Don't do this if not teambased. But if it is teambased we
	// create a few teams here as an example. If you're making a teambased
	// gamemode you should override this function in your gamemode
	if ( !GAMEMODE.TeamBased ) then return end
	
	team.SetUp( 1, "Criminals", Color( 225, 0, 0 ) )
	team.SetSpawnPoint( 1, "info_player_terrorist" ) // <-- This would be info_terrorist or some entity that is in your map
	
	TEAM_ORANGE = 2
	team.SetUp( TEAM_ORANGE, "Police", Color( 0, 0, 225 ) )
	team.SetSpawnPoint( TEAM_ORANGE, "info_player_counterterrorist" ) // <-- This would be info_terrorist or some entity that is in your map
	
	team.SetSpawnPoint( TEAM_SPECTATOR, "worldspawn" ) 

end


[lua]
function GM:CreateTeams()

TEAM_RED = 1
team.SetUp( TEAM_RED, "Criminals", Color( 225, 0, 0 ) )
team.SetSpawnPoint( TEAM_RED, "info_player_terrorist" )

TEAM_BLUE = 2
team.SetUp( TEAM_BLUE, "Police", Color( 0, 0, 225 ) )
team.SetSpawnPoint( TEAM_BLUE, "info_player_counterterrorist" )

team.SetSpawnPoint( TEAM_SPECTATOR, "worldspawn" )

end
[/lua]
Maybe try this.