diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 4ea4759d..31dac858 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using GTANetworkAPI; @@ -1091,7 +1091,7 @@ namespace ReallifeGamemode.Server.Commands ChatService.PlayerNotFound(player); return; } - if (target.Health != 0) + if (!target.HasData("isDead") || target.GetData("isDead")) { ChatService.ErrorMessage(player, "Der Spieler ist nicht tot"); return;