diff --git a/ZombieManager/scripting/ZombieManager.sp b/ZombieManager/scripting/ZombieManager.sp index 20ef6655..4887ab7b 100644 --- a/ZombieManager/scripting/ZombieManager.sp +++ b/ZombieManager/scripting/ZombieManager.sp @@ -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]); } \ No newline at end of file