Add height check for logout in air vehicle exploit

This prevents players who logout in grounded air vehicles from being relocated.
This commit is contained in:
ebaydayz
2016-10-25 18:48:54 -04:00
committed by GitHub
parent 84d549d0a1
commit c7d9741be4

View File

@@ -159,7 +159,7 @@ if (count _this > 4) then { //calling from player_onDisconnect
}; };
if (_isInVehicle) then { if (_isInVehicle) then {
//if the player object is inside a vehicle lets eject the player //if the player object is inside a vehicle lets eject the player
_relocate = if (vehicle _character isKindOf "Air") then {true} else {false}; _relocate = if ((vehicle _character isKindOf "Air") && (_charPos select 2 > 1.5)) then {true} else {false};
_character action ["eject", vehicle _character]; _character action ["eject", vehicle _character];
// Prevent relog in parachute, heli or plane above base exploit to get inside // Prevent relog in parachute, heli or plane above base exploit to get inside