SetWealth

Category: Player
Since engine version: 1.0 OC

Description

Sets the wealth value of a player.

Syntax

bool SetWealth(int player, int value);

Parameters

player:
Player number of the player whose wealth you want to change.
value:
New wealth value.

Example

SetWealth(5, 0);
Brankrupts player number six.
See also: DoWealth, GetWealth
jwk, 2002-08