fix anticheat

This commit is contained in:
hydrant
2021-04-11 02:18:22 +02:00
parent e9f48dacdb
commit 28e8b95345

View File

@@ -692,7 +692,7 @@ namespace ReallifeGamemode.Server.Commands
{ {
Vector3 playerPosition = new Vector3(player.Position.X, player.Position.Y - value, player.Position.Z); Vector3 playerPosition = new Vector3(player.Position.X, player.Position.Y - value, player.Position.Z);
if (player.IsInVehicle && player.VehicleSeat == 0) player.Vehicle.Position = playerPosition; if (player.IsInVehicle && player.VehicleSeat == 0) player.Vehicle.Position = playerPosition;
elseplayer.SafeTeleport(playerPosition); else player.SafeTeleport(playerPosition);
} }
else if (playerHeading >= 135 && playerHeading < 225) else if (playerHeading >= 135 && playerHeading < 225)
{ {