From 0aaf1ad79f90b3e6b62b1e4109e63cdb4469b70b Mon Sep 17 00:00:00 2001 From: Siga Date: Sat, 28 Mar 2020 18:31:42 +0100 Subject: [PATCH] fix arevive @AdminCommands.cs --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;