mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 23:32:53 +03:00
Fix possible weapon dupe
Thx to mmrsz
This commit is contained in:
@@ -4,12 +4,14 @@ Opens player inventory to save
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
_magazineArray = [] call player_countMagazines;
|
local _magazineArray = [] call player_countMagazines;
|
||||||
|
|
||||||
if ((count _magazineArray) > 0) then {
|
if ((count _magazineArray) > 0) then {
|
||||||
PVDZ_plr_Save = [player, if (player isKindOf "PZombie_VB") then {nil} else {_magazineArray},dayz_onBack,weapons player];
|
PVDZ_plr_Save = [player, if (player isKindOf "PZombie_VB") then {nil} else {_magazineArray},dayz_onBack,weapons player];
|
||||||
publicVariableServer "PVDZ_plr_Save";
|
} else {
|
||||||
|
PVDZ_plr_Save = [player,nil,dayz_onBack,weapons player];
|
||||||
};
|
};
|
||||||
|
publicVariableServer "PVDZ_plr_Save";
|
||||||
|
|
||||||
//diag_log format["Player_forceSave with magazines: %1",_magazineArray];
|
//diag_log format["Player_forceSave with magazines: %1",_magazineArray];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user