1,584
edits
DrinkyBird (talk | contribs) mNo edit summary |
DrinkyBird (talk | contribs) (Adjustments for second argument) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Player_SetTeam}} | {{DISPLAYTITLE:Player_SetTeam}} | ||
{{Template:ACSWarning}} | {{Template:ACSWarning}} | ||
int '''Player_SetTeam''' (int ''team'', bool ''nobroadcast'') | int '''Player_SetTeam''' (int ''team'') | ||
int '''Player_SetTeam''' (int ''team'', bool ''nobroadcast'') {{Devfeature|3.1|alpha-210602-1107}} | |||
==Usage== | ==Usage== | ||
Changes the team of the player who activated the special to ''team''. A valid team is anywhere between 0 and sv_maxteams (so 2, 3, 4). The teams are 0 = Blue, 1 = Red, 2 = Green, 3 = Gold. Using the current value of sv_maxteams removes the player from his current team without making him join another. The | Changes the team of the player who activated the special to ''team''. A valid team is anywhere between 0 and sv_maxteams (so 2, 3, 4). The teams are 0 = Blue, 1 = Red, 2 = Green, 3 = Gold. Using the current value of sv_maxteams removes the player from his current team without making him join another. | ||
The <tt>nobroadcast</tt> argument is optional, and suppresses the "{player} joined the {team}" chat message. | |||
==Example== | ==Example== | ||
{{noexamples}} | {{noexamples}} |