Uniqueid

From EventScripts Community Encyclopedia

Overview

Syntax: uniqueid <variable> <userid> [botname]

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: uniqueid

Description

Generates an unique id for each player or bot on Internet and LAN servers.

Parameters

  • variable - Variable which will store the player's steamid
  • userid - User id of the player
  • botname - if equal to 1 it forces the bot name into the id


Examples

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


Notes

  • Player on Internet: STEAMID
  • Bot on Internet: BOT or BOT_[botname]
  • Player on LAN: LAN_[id1]:[id2] - generated from the LAN IP
  • Bot on LAN: BOT or BOT_[botname]


See also

blog comments powered by Disqus