ZombieManager: and when map sets zm hp low

This commit is contained in:
dogan 2020-08-06 03:06:42 +02:00
parent 5db56330d6
commit bdf49aea9a

View File

@ -262,7 +262,7 @@ public Action OnPlayerHurt(Event event, const char[] name, bool dontBroadcast)
int attacker = GetClientOfUserId(GetEventInt(event, "attacker"));
int damage = GetEventInt(event, "dmg_health");
if(!IsClientInGame(client) || !IsPlayerAlive(client) || !ZR_IsClientZombie(client))
if(!IsClientInGame(client) || !IsPlayerAlive(client) || !ZR_IsClientZombie(client) || GetClientHealth(client) <= 100)
return Plugin_Continue;
if(g_iZShield[client] > 0 && attacker != 0)