Hello. I’m creating a code for teams in my next gamemode, however I’ve come across a problem, where I know what to fix, I just don’t know how to fix it.
team.SetUp(1, “Combine”, Color(255, 0, 0) true)
team.SetSpawnPoint( 1, ( “info_player_terrorist” ) )
function ChangeMyTeam( ply, cmd, args )
ply:SetTeam( args )
concommand.Add( “set_team”, ChangeMyTeam
Apparently, the team needs to have an index where I have “1” in team.SetSpawnPoint. However, I have no idea how to find/create an index for this team. A little help, please?