Garry's Mod Wiki

team.SetSpawnPoint

  team.SetSpawnPoint( number index, any classes )

Description

Sets valid spawnpoint classes for use by a team.

GM.TeamBased must be set to true for this to work

Arguments

1 number index
Index of the team
2 any classes
A spawnpoint classname or table of spawnpoint classnames

Example

Allows TEAM_BLUE to spawn at terrorist spawn points

team.SetSpawnPoint( TEAM_BLUE, {"info_player_terrorist"} )