Est Cash

From EventScripts Community Encyclopedia
Syntax: est_Cash <players> <operator> <value>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

Modify a players amount of cash by an operator

Parameters

  • players - See Est_PlayerSelection for player selection help
  • operator - Can be any of the following
    • + - adds cash
    • - - subtracts cash
    • = - sets cash
  • value - Ammount of cash you want to add/subtract/set

Example


event player_death
{
	if (event_var(weapon) equalto knife) do
	{
		es_centermsg event_var(es_attackername) killed event_var(es_username) with a knife
		es est_cash event_var(attacker) + 1000
	}
}

Give $1000 to a player when they get a knife kill

Notes

  • None

See Also

blog comments powered by Disqus