Es changeteam
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: es_xchangeteam [edit] DescriptionForces a player to move to another team. [edit] Parameters
[edit] Examplesevent player_say { if (event_var(text) == gospec) do { // The user wants to move to spectators. es_changeteam event_var(userid) 1 } else do { if (event_var(text) == otherteam) do { // The user wants to move to the other team. if (event_var(es_userteam) == 2) then es_xchangeteam event_var(userid) 3 if (event_var(es_userteam) == 3) then es_xchangeteam event_var(userid) 2 } } } [edit] Notes
[edit] See also |
