Help with Jailbreak Spawns

Hello everyone!

Today I need some help ;c I’m making a small Jailbreak gamemode, and need help with the spawns. Even though the spawns is set, prisoners still spawn in armoury / cells, same with guards.

Here is my shared.lua code:



TEAM_PRISONER = 1;
TEAM_GUARD = 2;
TEAM_PRISONER_DEAD = 3;
TEAM_GUARD_DEAD = 4;

team.SetUp( TEAM_GUARD, "Guards", Color(25, 25, 255) );
team.SetSpawnPoint(TEAM_GUARD, "info_player_counterterrorist");

team.SetUp( TEAM_GUARD_DEAD, "Dead Guards", Color(0, 0, 100) );
team.SetSpawnPoint(TEAM_GUARD_DEAD, "info_player_counterterrorist");

team.SetUp( TEAM_PRISONER, "Prisoners", Color(255, 50, 50) );
team.SetSpawnPoint(TEAM_PRISONER, "info_player_terrorist");

team.SetUp( TEAM_PRISONER_DEAD, "Dead Prisoners", Color(100, 0, 0) );
team.SetSpawnPoint(TEAM_PRISONER_DEAD, "info_player_terrorist");


And here is the init.lua code:



function GM:PlayerInitialSpawn( ply )
	
	ply:SetTeam( 1 )
	ply:SetWalkSpeed( 400 )
	ply:SetRunSpeed( 600 )
	ply:SetGravity( 1 )
	ply:AllowFlashlight( true )
	
end

function GM:PlayerLoadout( ply )

	if ply:Team() == 1 then
		ply:SetModel( "models/player/Group01/Male_01.mdl" )
		
	elseif ply:Team() == 2 then	
		ply:SetModel( "models/player/Police.mdl" )
		
	end
	
end


Thanks in advance,

Myles!