Es.getplayersteamid

From EventScripts Community Encyclopedia
This article is a stub. Please help by adding to it.



Method: getplayersteamid

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Gets a player's steamid. This is the Python equivalent of: http://www.eventscripts.com/pages/es_getplayersteamid

Arguments

es.getplayersteamid(<userid>)
  • Get the steamid from the player the specified userid


Examples

# include libraries
import es
# define chat command
def load():
    # registry command 'steamid' 
    if not es.exists('saycommand', 'steamid'):
        es.regsaycmd('steamid', 'steamid/get_steamid')
# define command execution
def get_steamid():
    # get playerID
    userid = es.getcmduserid()
    # Tell to player himself steamID
    es.tell (userid, "#multi", "#green MY STEAMID: " + ' #lightgreen ' + es.getplayersteamid(userid))

Notes

  • The player must be connected on the server


See Also

blog comments powered by Disqus