Add Vehicle Purchasing to Advanced Trading

Allows 1 vehicle purchase at a time.
Vehicles will still spawn inside each other if one is already parked on
the pad.
This commit is contained in:
icomrade
2016-04-27 22:04:47 -04:00
parent 17c31a5f21
commit b5af74b72b
2 changed files with 51 additions and 6 deletions

View File

@@ -13,6 +13,10 @@ _sidearmToBuy = _this select 4;
_primaryToBuy = _this select 5;
_vehiclesToBuy = _this select 6;
if (_vehiclesToBuy > 1) exitWith {systemChat "You can only purchase one vehicle at a time."; false;};
if (_vehiclesToBuy > 0) then {
_toolsToBuy = _toolsToBuy + _vehiclesToBuy;
};
if(_selection == 2) then{ //gear
_allowedMags = 20 - count(magazines player);
@@ -256,9 +260,4 @@ if(_selection == 0) then{ //backpack
};
};
if(_vehiclesToBuy != 0)then{
_return = false;
systemChat "You can NOT buy vehicles in this version";
};
_return
_return;