16.04.2014, 18:56
OnPlayerTakeDamage was called even if the damage was 0 in 0.3x (probably in 0.3e as well). I guess the damage is too low such as 0.1 for example and because of the problem with the floats, it might goes 0.09 which is basically 0.
You can avoid it by checking the value of the damage:
I'm not aware of your second problem though.
You can avoid it by checking the value of the damage:
pawn Код:
if (amount) // not 0.0
{
// code..
}