ZombieManager: anything for you neon ;)
This commit is contained in:
parent
01cbaa98c7
commit
2e9f3b1cca
@ -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]);
|
||||
}
|
Loading…
Reference in New Issue
Block a user