Est GetTeam

From EventScripts Community Encyclopedia
Syntax: est_GetTeam <variable> <identifier>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

  • Returns a player's team number

Parameters

  • variable - The variable to store the returned value in
    • 1 - Spectators
    • 2 - Terrorists
    • 3 - Counter-Terrorists
  • identifier - The identifier must be a players:
    • userid
    • steamid
    • username - Partial or full name

Example


event player_spawn
{
  es_xset myvar 0
  es est_GetTeam myvar event_var(userid)
  if(server_var(myvar) != 0) then es_xtell event_var(userid) your on team number: server_var(myvar)
}

Notes

  • None

See Also

blog comments powered by Disqus