mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Don't show debug message when paying with exact amount
This commit is contained in:
@@ -19,6 +19,10 @@ if (!isNull Z_vehicle && count _moneyInVehicle > 0 ) then {
|
|||||||
_nil = [Z_vehicle, _moneyInVehicle, []] call ZUPA_fnc_removeWeaponsAndMagazinesCargo;
|
_nil = [Z_vehicle, _moneyInVehicle, []] call ZUPA_fnc_removeWeaponsAndMagazinesCargo;
|
||||||
};
|
};
|
||||||
|
|
||||||
_success = [_toPay, _totalWorth] call Z_returnChange;
|
if (_totalWorth - _toPay == 0) then { // Money in inventory was exact amount
|
||||||
|
_success = true;
|
||||||
|
} else {
|
||||||
|
_success = [_toPay,_totalWorth] call Z_returnChange;
|
||||||
|
};
|
||||||
|
|
||||||
_success
|
_success
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ _killerDist = 0;
|
|||||||
if (count _this > 0) then {
|
if (count _this > 0) then {
|
||||||
_killerObj = _this select 0;
|
_killerObj = _this select 0;
|
||||||
_killerMethod = _this select 1;
|
_killerMethod = _this select 1;
|
||||||
|
if (typeName _killerMethod == "OBJECT") exitWith {_killerMethod = "Respawned"};
|
||||||
|
|
||||||
if (!isNull _killerObj) then {
|
if (!isNull _killerObj) then {
|
||||||
if (!isNull _body) then {_killerDist = _body distance _killerObj;};
|
if (!isNull _body) then {_killerDist = _body distance _killerObj;};
|
||||||
|
|||||||
Reference in New Issue
Block a user