From 28e8b9534565fc153991a7b3c27998c6fd8f9e63 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 11 Apr 2021 02:18:22 +0200 Subject: [PATCH 1/2] fix anticheat --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index b4495950..4eaf5de2 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -692,7 +692,7 @@ namespace ReallifeGamemode.Server.Commands { Vector3 playerPosition = new Vector3(player.Position.X, player.Position.Y - value, player.Position.Z); if (player.IsInVehicle && player.VehicleSeat == 0) player.Vehicle.Position = playerPosition; - elseplayer.SafeTeleport(playerPosition); + else player.SafeTeleport(playerPosition); } else if (playerHeading >= 135 && playerHeading < 225) { From 725c9177c7834533305d730ca7fa148cc6a7568a Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 11 Apr 2021 02:19:20 +0200 Subject: [PATCH 2/2] fix hq:hq when unjail --- ReallifeGamemode.Server/Wanted/Jail.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Wanted/Jail.cs b/ReallifeGamemode.Server/Wanted/Jail.cs index 2c259e40..ad6fc243 100644 --- a/ReallifeGamemode.Server/Wanted/Jail.cs +++ b/ReallifeGamemode.Server/Wanted/Jail.cs @@ -185,7 +185,7 @@ namespace ReallifeGamemode.Server.Wanted player.Health = 100; player.SafeTeleport(new Vector3(427.879, -984.65, 30.71)); - ChatService.HQMessage("!{#8181E9}HQ: Beamter " + cop.Name + " hat " + user.Name + " aus dem Knast entlassen."); + ChatService.HQMessage("Beamter " + cop.Name + " hat " + user.Name + " aus dem Knast entlassen."); ChatService.SendMessage(player, "!{#8181E9}Der Beamte " + cop.Name + " hat dich aus dem Knast entlassen"); player.TriggerEvent("jailTime", 0); }