VoidExpanse/scope-player: Difference between revisions
(Created page with "<noinclude> Category:VoidExpanse/api_scopes </noinclude> = Scope player = Used to manage player-related stuff. '''Visibility:''' Global. == List of functions == {{Scri...") |
(No difference)
|
Revision as of 04:27, 14 February 2014
Scope player
Used to manage player-related stuff.
Visibility: Global.
List of functions
| AddMoney | ||
|---|---|---|
| Arguments | Returns | Example |
|
void |
player.AddMoney("dlirry", 100500);
|
| Description | ||
|
Adds specified amount of money to a player. | ||
| GetMoney | ||
|---|---|---|
| Arguments | Returns | Example |
|
int: player's money |
var money = player.GetMoney("dlirry", 100500);
|
| Description | ||
|
Gets current amount of player's money | ||
| GetShipOfPlayer | ||
|---|---|---|
| Arguments | Returns | Example |
|
int: player's ship ID |
var ship_id = player.GetShipOfPlayer("dlirry");
|
| Description | ||
|
Returns ID of player's ship. | ||
| RemoveMoney | ||
|---|---|---|
| Arguments | Returns | Example |
|
void |
vplayer.RemoveMoney("dlirry", 1);
|
| Description | ||
|
Removes specified amount of money from player. | ||