fix arevive @AdminCommands.cs

This commit is contained in:
Siga
2020-03-28 18:31:42 +01:00
parent 51f8a14b67
commit 0aaf1ad79f

View File

@@ -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<bool>("isDead"))
{
ChatService.ErrorMessage(player, "Der Spieler ist nicht tot");
return;