mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
workaround for HandleDisconnect not working
This commit is contained in:
parent
350554b7f1
commit
a4f0ab80ec
@ -79,7 +79,18 @@ addMissionEventHandler ["PlayerConnected", {
|
|||||||
["PlayerData", _uid, EPOCH_expiresPlayer, [_name]] call EPOCH_fnc_server_hiveSETEX;
|
["PlayerData", _uid, EPOCH_expiresPlayer, [_name]] call EPOCH_fnc_server_hiveSETEX;
|
||||||
['Connected', [_uid, _name]] call EPOCH_fnc_server_hiveLog;
|
['Connected', [_uid, _name]] call EPOCH_fnc_server_hiveLog;
|
||||||
}];
|
}];
|
||||||
addMissionEventHandler ["HandleDisconnect", {_this call EPOCH_server_onPlayerDisconnect}];
|
|
||||||
|
onPlayerDisconnected {
|
||||||
|
params ["_id", "_uid", "_name"];
|
||||||
|
_unit = objNull;
|
||||||
|
{
|
||||||
|
if ((_x getVariable["PUID", "0"]) == _uid) exitWith {
|
||||||
|
_unit = _x;
|
||||||
|
};
|
||||||
|
} forEach allUnits;
|
||||||
|
[_unit,_id,_uid,_name] call EPOCH_server_onPlayerDisconnect
|
||||||
|
};
|
||||||
|
// addMissionEventHandler ["HandleDisconnect", {_this call EPOCH_server_onPlayerDisconnect}];
|
||||||
|
|
||||||
diag_log "Epoch: Setup Side Settings";
|
diag_log "Epoch: Setup Side Settings";
|
||||||
//set side status
|
//set side status
|
||||||
|
Loading…
Reference in New Issue
Block a user