Es getplayersteamid

From EventScripts Community Encyclopedia


Overview

Syntax: es_getplayersteamid <variable> <userid>

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_xgetplayersteamid

Description

Stores the user's steamid in the specified variable.

Parameters

  • variable - Variable which will store the player's steamid
  • userid - User id of the player


Examples

// Get the player's steamid and display it to everyone
es_getplayersteamid playersteamid event_var(userid)
es_msg event_var(es_username) is using the STEAMID: server_var(playersteamid)


Notes

  • The server could crash if the provieded userid does not exists!
  • variable will equal 0 if the player does not exist.


See also

blog comments powered by Disqus