Es getmoney

From EventScripts Community Encyclopedia


Overview

Syntax: es_getmoney <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_xgetmoney

Description

Looks up the money of the player specified by userid and stores it in the variable. (CS:S only) EventScripts will expand any variables it finds.

Parameters

  • variable - a variable where you wish to store the player money
  • userid - ID of player


Examples

es_xsetinfo playermoney 0
es_getmoney playermoney event_var(userid)


Notes

  • This command is dependent on eventscripts_cflags variable and might break on a Valve update.
    • Since EventScripts v1.3 this is no longer the case. es_getmoney uses es_getplayerprop internally.
  • same as
 es_getplayerprop playermoney event_var(userid) "CCSPlayer.m_iAccount"
  • since EventScripts v1.5 playerget cash will get you the money of a player


See also


blog comments powered by Disqus