Team 1 spawn counter t side, team 2 spawn t side

Hey, I have done this before, I know this has been posted before, I just can’t find it, I don’t know how to make team 1 spawn at counter t side, and team 2 spawn at t side
I can only assume it’s like this
[lua]
function team_1( ply )

 ply:SetTeam( 1 )
 ply:Spawn() -- Somewhere in here...

end

function team_2( ply )

 ply:SetTeam( 2 ) 
 ply:Spawn() -- Also somewhere in here...

end
[/lua]

[lua]SetUp(TEAM_BHOP, “Bhoppers”, Color(25, 25, 112, 255))
tem.SetSpawnPoint(TEAM_BHOP, “info_player_terrorist”)[/lua]
You need that in your CreateTeams function in shared, change it to your team and counterterrorist for the other team. That’s just what I use for my bhop.