mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Update maintain_area.sqf
This commit is contained in:
@@ -61,7 +61,7 @@ _maintain = {
|
|||||||
|
|
||||||
_enoughMoney = false;
|
_enoughMoney = false;
|
||||||
_moneyInfo = [false, [], [], [], 0];
|
_moneyInfo = [false, [], [], [], 0];
|
||||||
_wealth = player getVariable[Z_MoneyVariable,0];
|
_wealth = player getVariable[(["cashMoney","globalMoney"] select Z_persistentMoney),0];
|
||||||
|
|
||||||
if (Z_SingleCurrency) then {
|
if (Z_SingleCurrency) then {
|
||||||
_enoughMoney = (_wealth >= _amount);
|
_enoughMoney = (_wealth >= _amount);
|
||||||
@@ -84,7 +84,7 @@ _maintain = {
|
|||||||
|
|
||||||
systemChat format[localize "STR_EPOCH_ACTIONS_4",_count];
|
systemChat format[localize "STR_EPOCH_ACTIONS_4",_count];
|
||||||
if (Z_SingleCurrency) then {
|
if (Z_SingleCurrency) then {
|
||||||
player setVariable[Z_MoneyVariable,(_wealth - _amount),true];
|
player setVariable[(["cashMoney","globalMoney"] select Z_persistentMoney),(_wealth - _amount),true];
|
||||||
_message1 = format [localize "STR_EPOCH_PLOTMANAGEMENT_OBJECTS_MAINTAINED_SUCCESS",_count,[_amount] call BIS_fnc_numberText,_itemText];
|
_message1 = format [localize "STR_EPOCH_PLOTMANAGEMENT_OBJECTS_MAINTAINED_SUCCESS",_count,[_amount] call BIS_fnc_numberText,_itemText];
|
||||||
} else {
|
} else {
|
||||||
_message1 = format [localize "STR_EPOCH_PLOTMANAGEMENT_OBJECTS_MAINTAINED_SUCCESS",_count,_itemText,""];
|
_message1 = format [localize "STR_EPOCH_PLOTMANAGEMENT_OBJECTS_MAINTAINED_SUCCESS",_count,_itemText,""];
|
||||||
|
|||||||
Reference in New Issue
Block a user