• Fretta Automatically assign teams
    1 replies, posted
How would I go about making it so the option to change team is not available and users are set a team when they join, (team1), and when a round starts a random member of team1 is transferred to team2 to be "it"?
There is a boolean on the end of team.SetUp that determines whether or not you can join the team. True makes it appear on the selection menu, false does not. If you set that particular team to false, the selection menu will still appear, but only the team you want the player to join will be available. Like this, [lua]team.SetUp( TEAM_ZOMBEEZ, "The Zombies", Color( 255, 30, 70 ), false )[/lua] To set a random player to that team, do this: [lua]local it = table.Random( player.GetAll() ) it:SetTeam( TEAM_ZOMBEEZ )[/lua]
Sorry, you need to Log In to post a reply to this thread.