mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
setdate experiment #2
This commit is contained in:
@@ -396,16 +396,13 @@ if (!isDedicated) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
player_setDate = {
|
player_setDate = {
|
||||||
private ["_setdatebool","_forEachIndex","_newdate","_n"];
|
private ["_setdatebool"];
|
||||||
_setdatebool = false;
|
_setdatebool = false;
|
||||||
_n = _this;
|
if (!([_this, date] call BIS_fnc_areEqual)) exitWith {
|
||||||
{
|
|
||||||
if (_x != (_n select _forEachIndex)) exitWith {
|
|
||||||
_setdatebool = true;
|
_setdatebool = true;
|
||||||
};
|
};
|
||||||
} forEach date;
|
|
||||||
if (_setdatebool) then {
|
if (_setdatebool) then {
|
||||||
setDate _newdate;
|
setDate _this;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user