1.0.1.1 part 2

This commit is contained in:
vbawol
2013-05-29 08:08:09 -05:00
parent d3d6397c27
commit 7805cc8e4f
3 changed files with 1574 additions and 28 deletions

View File

@@ -87,19 +87,15 @@ if (_qty >= _qty_in) then {
if(dayzTradeResult == "PASS") then {
for "_x" from 1 to _qty_in do {
if(_buy_o_sell == "buy") then {
player removeMagazine _part_in;
} else {
player removeWeapon _part_in;
};
};
for "_x" from 1 to _qty_out do {
if(_buy_o_sell == "buy") then {
player addWeapon _part_out;
} else {
player addMagazine _part_out;
_removed = ([player,_part_in,_qty_in] call BIS_fnc_invRemove);
if(_removed == _qty_in) then {
for "_x" from 1 to _qty_out do {
if(_buy_o_sell == "buy") then {
player addWeapon _part_out;
} else {
player addMagazine _part_out;
};
};
};