onClientCashChange

From Liberty Unleashed Wiki
Revision as of 19:08, 14 April 2011 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This is called when the clients cash changes.

Syntax

  1. function onClientCashChange( int oldcash, int newcash )

Arguments

  • oldcash - The player's old cash value
  • newcash - The player's new cash value

Returns

This event does not handle return values.

Example

This example will message the player when their cash changes.

  1.  
  2. function onClientCashChange( oldcash, newcash )
  3. {
  4. Message( "You now have $" + newcash );
  5. return 1;
  6. }
  7.  

Notes

The function Message was used in this example. More info about it can be found in the corresponding page.

Related Events

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox