From dd1ba186eb80a957af93f41afec9bcffdd4024b9 Mon Sep 17 00:00:00 2001 From: BotoX Date: Sun, 25 Sep 2016 22:00:29 +0200 Subject: [PATCH] fix infection issue for 65th client on server. --- src/zr/damage.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/zr/damage.inc b/src/zr/damage.inc index 5531509..e0d6e3e 100644 --- a/src/zr/damage.inc +++ b/src/zr/damage.inc @@ -224,7 +224,7 @@ public Action:DamageOnTakeDamage(client, &attacker, &inflictor, &Float:damage, & // Get the attacker weapon name. new String:weaponname[64]; - if(attacker >= 1 && attacker < MAXPLAYERS) + if(attacker >= 1 && attacker <= MAXPLAYERS) GetClientWeapon(attacker, weaponname, sizeof(weaponname)); // If entity is a trigger, then allow damage. (Map is damaging client) @@ -233,10 +233,8 @@ public Action:DamageOnTakeDamage(client, &attacker, &inflictor, &Float:damage, & return Plugin_Continue; } - new Action:action; - // Forward this hook to another module an return (or not) what it wants. - action = Action:NapalmOnTakeDamage(client, damagetype); + new Action:action = Action:NapalmOnTakeDamage(client, damagetype); // If the napalm module wants to return here, then return the int casted into the action type. if (action > Action:-1)