diff --git a/ReallifeGamemode.Server/Events/Death.cs b/ReallifeGamemode.Server/Events/Death.cs index e935582b..b810a62b 100644 --- a/ReallifeGamemode.Server/Events/Death.cs +++ b/ReallifeGamemode.Server/Events/Death.cs @@ -27,7 +27,6 @@ namespace ReallifeGamemode.Server.Events { private readonly Dictionary lastPlayerDeathTime = new Dictionary(); - [ServerEvent(Event.PlayerDeath)] public void OnPlayerDeath(Player player, Player killer, uint reason) { @@ -114,9 +113,9 @@ namespace ReallifeGamemode.Server.Events }; dbContext.DeathLogs.Add(dead); - bool copNearby = NAPI.Pools.GetAllPlayers().Any(u => u.IsDuty() && u.IsAlive() && u.Position.DistanceToSquared(player.Position) <= 200 * 200); + bool copNearby = NAPI.Pools.GetAllPlayers().Any(u => u.IsDuty() && u.IsAlive() && u.Position.DistanceToSquared(player.Position) <= 100 * 100); - if (user.Wanteds > 0) + if (user.Wanteds > 0 && player.HasData("GotInsideOfTurf") && !player.GetData("GotInsideOfTurf")) { if (copNearby) {