ZombieManager: anything for you neon ;)

This commit is contained in:
dogan 2020-08-06 04:00:02 +02:00
parent 01cbaa98c7
commit 2e9f3b1cca

View File

@ -263,7 +263,10 @@ public Action OnPlayerHurt(Event event, const char[] name, bool dontBroadcast)
int damage = GetEventInt(event, "dmg_health");
if(!IsClientInGame(client) || !IsPlayerAlive(client) || !ZR_IsClientZombie(client) || GetClientHealth(client) <= g_iZHPMax[client])
{
g_iZShield[client] = 0;
return Plugin_Continue;
}
if(g_iZShield[client] > 0 && attacker != 0)
{
@ -434,7 +437,7 @@ public void UpdateHintMessage(int client, bool bHasItem)
return;
if(g_iZShield[client] <= 0 || bHasItem)
PrintHintText(client, "HP: %d - Shield: none", GetClientHealth(client));
PrintHintText(client, "HP: %d", GetClientHealth(client));
else
PrintHintText(client, "HP: %d - Shield: %d", GetClientHealth(client), g_iZShield[client]);
}