I'm trying to set double damage when a certain boolean is true
PHP Code:
new bool:bHasWeapon[33];
Is this the way to do it or is there a better way? I've found this from a post of 2011 which is why i'm asking since it might be outdated.
PHP Code:
public PreDoubleDamage(id, Inflictor, Attacker, Float:Damage, Damagebits)
{
if(!(1 <= Attacker <= get_maxplayers()) || Attacker != Inflictor || !bHasWeapon[Attacker])
{
return HAM_IGNORED;
}
SetHamParamFloat(4, Damage * 2);
return HAM_HANDLED;
}
Original thread:
https://forums.alliedmods.net/showthread.php?t=174279
__________________