Use util for manager give player money cmd
This commit is contained in:
@@ -702,7 +702,7 @@ function givePlayerMoneyCommand(command, params, client) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
getPlayerCurrentSubAccount(targetClient).cash += amount;
|
givePlayerMoney(client, toInteger(amount));
|
||||||
updatePlayerCash(targetClient);
|
updatePlayerCash(targetClient);
|
||||||
messagePlayerSuccess(client, `You gave [#AAAAAA]$${amount} [#FFFFFF]to [#AAAAAA]${getCharacterFullName(targetClient)}`);
|
messagePlayerSuccess(client, `You gave [#AAAAAA]$${amount} [#FFFFFF]to [#AAAAAA]${getCharacterFullName(targetClient)}`);
|
||||||
messagePlayerAlert(client, `An admin gave you [#AAAAAA]$${amount}`);
|
messagePlayerAlert(client, `An admin gave you [#AAAAAA]$${amount}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user