fix infection issue for 65th client on server.
This commit is contained in:
parent
ab210d531e
commit
dd1ba186eb
|
@ -224,7 +224,7 @@ public Action:DamageOnTakeDamage(client, &attacker, &inflictor, &Float:damage, &
|
||||||
|
|
||||||
// Get the attacker weapon name.
|
// Get the attacker weapon name.
|
||||||
new String:weaponname[64];
|
new String:weaponname[64];
|
||||||
if(attacker >= 1 && attacker < MAXPLAYERS)
|
if(attacker >= 1 && attacker <= MAXPLAYERS)
|
||||||
GetClientWeapon(attacker, weaponname, sizeof(weaponname));
|
GetClientWeapon(attacker, weaponname, sizeof(weaponname));
|
||||||
|
|
||||||
// If entity is a trigger, then allow damage. (Map is damaging client)
|
// 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;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
new Action:action;
|
|
||||||
|
|
||||||
// Forward this hook to another module an return (or not) what it wants.
|
// 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 the napalm module wants to return here, then return the int casted into the action type.
|
||||||
if (action > Action:-1)
|
if (action > Action:-1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user