Need some class help

Okay, lua king is back.

I don’t know hos to get players to choose their classes after selecting team or after in the game.

there’s my shared.lua:

GM.Name = “1 team -game”
GM.Author = “Heke V”
GM.Email = “”
GM.Website = “”

DeriveGamemode( “fretta” )
IncludePlayerClasses()

GM.Help = “”
GM.TeamBased = true
GM.AllowAutoTeam = false
GM.ForceJoinBalancedTeams = false
GM.AllowSpectating = true
GM.SelectClass = true
GM.SecondsBetweenTeamSwitches = 10
GM.GameLength = 30
GM.NoPlayerDamage = false
GM.NoPlayerSelfDamage = false
GM.NoPlayerTeamDamage = true
GM.NoPlayerPlayerDamage = false
GM.NoNonPlayerPlayerDamage = false
GM.TakeFragOnSuicide = true
GM.AddFragsToTeamScore = true
GM.RoundLimit = 10 // Maximum amount of rounds to be played in round based games

TEAM_T = 1
TEAM_CT = 2

function GM:CreateTeams()

team.SetUp( TEAM_T, "Blue team", Color( 80, 150, 255 ) )
team.SetSpawnPoint( TEAM_CT, { "info_player_blue" }, true )

team.SetUp( TEAM_CT, "Red team", Color( 255, 80, 80 ) )
team.SetSpawnPoint( TEAM_T, { "info_player_red" }, true )

team.SetUp( TEAM_SPECTATOR, "Spectators", Color( 200, 200, 200 ), true )
team.SetSpawnPoint( TEAM_SPECTATOR, { "info_player_start", "info_player_terrorist", "info_player_counterterrorist" } ) 

end

and class_default.lua:

local CLASS = {}

CLASS.DisplayName = “Default Class”
CLASS.WalkSpeed = 200
CLASS.CrouchedWalkSpeed = 0.65
CLASS.RunSpeed = 250
CLASS.DuckSpeed = 0.2
CLASS.JumpPower = 200
CLASS.DrawTeamRing = false
CLASS.MaxHealth = 100
CLASS.StartArmor = 0
CLASS.StartHealth = 100
CLASS.Description = “”;
CLASS.Selectable = false
CLASS.RespawnTime = 0 // 0 means use the default spawn time chosen by gamemode
CLASS.CanUseFlashlight = true
CLASS.DropWeaponOnDie = false

function CLASS:Loadout( pl )

pl:Give( "weapon_crowbar" )

end

function CLASS:OnSpawn( pl )
for k,v in pairs( Levels ) do
if k == pl:Frags() then
local gun = v
pl:Give( gun )
pl:SelectWeapon( gun )
end
end
end

I make player slower in class_default.lua but they do not are, and they don’t even have a crowbar. Only a pistol.