game_money

From Source Entities
Jump to navigation Jump to search

Code classes:

Game money.png

game_money is a point entity present in Csgo-small.pngCounter-Strike: Global Offensive. It gives players money and shows a text chat message.

Keyvalues[edit | edit source]

Amount of money to add (+/-) (Money) <integer>
Amount of money to add or subtract. Does not fully support negative numbers.
Award Text (AwardText) <string>
Text to print in the text chat if awarding to a team.

Inputs[edit | edit source]

SetMoneyAmount <integer>
Does nothing.
AddTeamMoneyTerrorist
Tells the terrorist team they received a reward and shows Award Text. Does not actually give it to them.
AddTeamMoneyCT
Tells the CT team they received a reward and shows Award Text. Does not actually give it to them.
AddMoneyPlayer
Gives the money to the activating player.
SpendMoneyFromPlayer
Tries to take Amount of money to add away from the activating player and fire OnMoneySpent. If the player doesn't have that much money, just fires OnMoneySpentFail.

Outputs[edit | edit source]

OnMoneySpent
Fires when a player has more money than or equal to Amount of money to add when SpendMoneyFromPlayer is sent.
OnMoneySpentFail
Fires when a player has less money than Amount of money to add when SpendMoneyFromPlayer is sent.