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

File diff suppressed because it is too large Load Diff

View File

@@ -162,8 +162,9 @@ if (_qty >= _qty_in) then {
}; };
}; };
if(_okToSell and !isNull _obj and alive _obj) then { if(_okToSell) then {
if(!isNull _obj and alive _obj) then {
// Sell Vehicle // Sell Vehicle
for "_x" from 1 to _qty_out do { for "_x" from 1 to _qty_out do {
player addMagazine _part_out; player addMagazine _part_out;
@@ -180,6 +181,9 @@ if (_qty >= _qty_in) then {
cutText [format[("Sold %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; cutText [format[("Sold %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
}; };
} else {
cutText [format[("Cannot sell %1, tires are too damaged."),_textPartOut] , "PLAIN DOWN"];
};
}; };
{player removeAction _x} forEach s_player_parts;s_player_parts = []; {player removeAction _x} forEach s_player_parts;s_player_parts = [];

View File

@@ -87,14 +87,9 @@ if (_qty >= _qty_in) then {
if(dayzTradeResult == "PASS") then { if(dayzTradeResult == "PASS") then {
for "_x" from 1 to _qty_in do { _removed = ([player,_part_in,_qty_in] call BIS_fnc_invRemove);
if(_buy_o_sell == "buy") then {
player removeMagazine _part_in;
} else {
player removeWeapon _part_in;
};
};
if(_removed == _qty_in) then {
for "_x" from 1 to _qty_out do { for "_x" from 1 to _qty_out do {
if(_buy_o_sell == "buy") then { if(_buy_o_sell == "buy") then {
player addWeapon _part_out; player addWeapon _part_out;
@@ -102,6 +97,7 @@ if (_qty >= _qty_in) then {
player addMagazine _part_out; player addMagazine _part_out;
}; };
}; };
};
cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"]; cutText [format[("Traded %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];