Es getplayerteam
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_xgetplayerteam [edit] DescriptionStores the user's team in the specified variable. [edit] Parameters
[edit] Examples// Get the player's team and display it to everyone es_getplayerteam playerteam event_var(userid) if (server_var(playerteam) == "0") then es_xmsg event_var(es_username) is Unassigned if (server_var(playerteam) == "1") then es_xmsg event_var(es_username) is on the Spectators if (server_var(playerteam) == "2") then es_xmsg event_var(es_username) is on the Terrorists if (server_var(playerteam) == "3") then es_xmsg event_var(es_username) is on the Counter-Terrorists
[edit] Notes
[edit] See also |
