Est GetUserID

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

Contents

Description

  • Returns a player's userID

Parameters

  • variable - The variable to store the returned value in
  • identifier - The identifier must be a players:
    • userid
    • steamid
    • username - Partial or full name

Example


event player_spawn
{
  es_xset myid 0
  es est_GetUserID myid event_var(es_username)
  if(server_var(myid) != 0) then es_xtell server_var(myid) your userid is: server_var(myid)
}

Notes

  • None

See Also

blog comments powered by Disqus