Fix Advanced Trading Selling + new Var

New variable to configure whether or not the player will need to key to
sell a vehicle. DZE_SaleRequiresKey = false;
This commit is contained in:
icomrade
2016-07-23 01:16:37 -04:00
parent 855a72ca1f
commit 9c4e30ea08
4 changed files with 6 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ _deleteTradedVehicle = {
_VehKey2 = (_this select 0) select 0;
_delType = _this select 1;
if ((count _VehKey2) > 0) then {
if ((_VehKey2 select 0) == "0" || _delType in ["trade_any_bicycle", "trade_any_bicycle_old", "trade_any_vehicle_free"]) then {
if ((_VehKey2 select 0) == "0" || _delType in ["trade_any_bicycle", "trade_any_bicycle_old", "trade_any_vehicle_free"] || !DZE_SaleRequiresKey) then {
_localResult2 = 1;
} else {
{
@@ -31,7 +31,6 @@ _deleteTradedVehicle = {
};
} forEach (items player);
};
_localResult2 = 1; //comment out to require key to sell vehicles
if (isNil "_localResult2") then {
_localResult2 = 0;
} else {