I’m using fretta to make my gamemode and I removed 2 of the teams and renamed them but when I click on the button to join the team it says “team unassigned” or something. is there something I forgot? here’s the code:
[lua]TEAM_SPETZNAZ = 1
TEAM_RANGERS = 2
/---------------------------------------------------------
Name: gamemode:CreateTeams()
Desc: Set up all your teams here. Note - HAS to be shared.
---------------------------------------------------------/
function GM:CreateTeams()
if ( !GAMEMODE.TeamBased ) then return end
team.SetUp( TEAM_SPETZNAZ, "Spetznaz", Color( 255, 0, 0 ), true )
team.SetSpawnPoint( TEAM_SPETZNAZ, "info_player_terrorist" ) // The list of entities can be a table
team.SetUp( TEAM_RANGERS, "U.S. Rangers", Color( 0, 0, 255 ) )
team.SetSpawnPoint( TEAM_RANGERS, "info_player_counterterrorist", true )
team.SetUp( TEAM_SPECTATOR, "Spectators", Color( 200, 200, 200 ), true )
team.SetSpawnPoint( TEAM_SPECTATOR, "info_player_start" )
team.SetClass( TEAM_SPECTATOR, { "Spectator" } )
end[/lua]