mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-20 18:36:29 +03:00
Fix weapon dupe with server_playerSync
This reverts all the last changes to server_playerSync and creates a new global variable for dayz_onBack. This should be the best way to save the gear correct and still get dayz_onBack if the player leaves the server. This change removes the constant sending of the whole player inventory over the network from force or regluar_save. It should no longer be needed since the server does the counting now.
This commit is contained in:
@@ -28,6 +28,7 @@ local _ConfirmedBanditKills = player getVariable ["ConfirmedBanditKills",0];
|
||||
local _friendlies = player getVariable ["friendlies",[]];
|
||||
local _tagSetting = player getVariable ["DZE_display_name",false];
|
||||
local _radiostate = player getVariable ["radiostate",false];
|
||||
local _dayz_onBack = player getVariable ["dayz_onBack",""];
|
||||
local _coins = 0;
|
||||
local _bankCoins = 0;
|
||||
local _globalCoins = 0;
|
||||
@@ -97,6 +98,7 @@ player setVariable ["ConfirmedBanditKills",_ConfirmedBanditKills,true];
|
||||
player setVariable ["friendlies",_friendlies,true];
|
||||
player setVariable ["DZE_display_name",_tagSetting,true];
|
||||
player setVariable ["radiostate",_radiostate];
|
||||
player setVariable ["dayz_onBack",_dayz_onBack,true];
|
||||
|
||||
if (Z_SingleCurrency) then {
|
||||
player setVariable ["cashMoney",_coins,true];
|
||||
|
||||
Reference in New Issue
Block a user