Player.SetTeam
From GMod Wiki
Function | |
Syntax | Player:SetTeam( Integer team index ) |
Description: | |
Sets the player's team. | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SetTeam]Player.SetTeam [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | The player can change to team 3 by typing team_3 in the console. |
---|---|
Used on | |
Code | function JoinTeam3(ply) ply:SetTeam(3) end concommand.Add("team_3", JoinTeam3) |
Output | N/A |