From 826b4afce47a1dab5f2db60a577207f618d169e7 Mon Sep 17 00:00:00 2001 From: tbox1911 Date: Sat, 4 May 2024 17:40:59 +0200 Subject: [PATCH] clean tent far --- core.liberation/scripts/server/game/cleanup_player.sqf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core.liberation/scripts/server/game/cleanup_player.sqf b/core.liberation/scripts/server/game/cleanup_player.sqf index 58ef76991..0641457f5 100644 --- a/core.liberation/scripts/server/game/cleanup_player.sqf +++ b/core.liberation/scripts/server/game/cleanup_player.sqf @@ -25,11 +25,10 @@ private _my_veh = vehicles select { _x getVariable ["GRLIB_vehicle_owner", ""] = } forEach _my_veh; // Remove tents too far -private _my_tent = []; if (!isNil "GRLIB_mobile_respawn") then { - _my_tent = GRLIB_mobile_respawn select { + private _my_tent = GRLIB_mobile_respawn select { !([_x, "FOB", GRLIB_fob_range] call F_check_near) && - isNil {_x getVariable "R3F_LOG_est_transporte_par"} && + isNull (_x getVariable "R3F_LOG_est_transporte_par") && (_x getVariable ["GRLIB_vehicle_owner", ""] == _uid) }; {