mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
move this workaround to onDisconnect.
should handle removing any doppelgangers if the player did not log in correctly.
This commit is contained in:
parent
759daa7ee5
commit
db030763bd
@ -139,13 +139,6 @@ if (!isNull _player) then {
|
||||
|
||||
_group = grpNull;
|
||||
|
||||
// Delete any left over units with same PUID
|
||||
{
|
||||
if ((_x getVariable["PUID", "0"]) == _playerUID) then {
|
||||
deleteVehicle _x;
|
||||
};
|
||||
} forEach allUnits;
|
||||
|
||||
// find existing group
|
||||
if (_playerGroup != "") then {
|
||||
{
|
||||
|
@ -28,6 +28,12 @@ if (!isNull _player) then {
|
||||
deleteVehicle _player;
|
||||
};
|
||||
};
|
||||
// Delete any left over units with same PUID
|
||||
{
|
||||
if ((_x getVariable["PUID", "0"]) == _uid) then {
|
||||
deleteVehicle _x;
|
||||
};
|
||||
} forEach allUnits;
|
||||
_uid call EPOCH_server_disconnect;
|
||||
['Disconnected', [_uid, _name]] call EPOCH_fnc_server_hiveLog;
|
||||
_return
|
||||
|
Loading…
Reference in New Issue
Block a user