1.0.1.1 part 3

This commit is contained in:
vbawol
2013-05-29 08:18:17 -05:00
parent 7805cc8e4f
commit dbe8fb206a
2 changed files with 7 additions and 4 deletions

View File

@@ -102,9 +102,11 @@ if (_qty >= _qty_in) then {
}; };
} else { } else {
// Sell // Sell
removeBackpack player; if((typeOf (unitBackpack player)) == _part_in) then {
for "_x" from 1 to _qty_out do { removeBackpack player;
player addMagazine _part_out; for "_x" from 1 to _qty_out do {
player addMagazine _part_out;
};
}; };
}; };

View File

@@ -97,9 +97,10 @@ 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"];
{player removeAction _x} forEach s_player_parts;s_player_parts = []; {player removeAction _x} forEach s_player_parts;s_player_parts = [];
s_player_parts_crtl = -1; s_player_parts_crtl = -1;