Garry's Mod Wiki

GM:PlayerJoinTeam

  GM:PlayerJoinTeam( Player ply, number team )

Description

Makes the player join a specified team. This is a convenience function that calls Player:SetTeam and runs the GM:OnPlayerChangedTeam hook.

Arguments

1 Player ply
Player to force
2 number team
The team to put player into