Update player_unlockVault.sqf

This commit is contained in:
SilvDev
2014-02-15 18:23:00 +00:00
parent 919404b3a9
commit 3301f7bb31

View File

@@ -108,9 +108,12 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
_objWpnTypes = _magazines select 0;
_objWpnQty = _magazines select 1;
_countr = 0;
{
if( _x != "CSGAS" ) then
{
_holder addmagazinecargoGlobal [_x,(_objWpnQty select _countr)];
_countr = _countr + 1;
};
} forEach _objWpnTypes;
};
@@ -119,13 +122,9 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
_objWpnTypes = _backpacks select 0;
_objWpnQty = _backpacks select 1;
_countr = 0;
{
if( _x != "CSGAS" ) then
{
_holder addbackpackcargoGlobal [_x,(_objWpnQty select _countr)];
_countr = _countr + 1;
};
} forEach _objWpnTypes;
};