Quote:
Originally Posted by BhK
Checking if attacker is connected and the damage is done by the attacker !
is something wrong ?
Or should I only write ?
PHP Code:
if( inflictor != attacker ) return HAM_IGNORED;
|
Why are you using inflictor? inflictor is the same as attacker except for when it's grenade damage. I'm guessing you want to check that the victim was hurt by another player? Better to compare victim to attacker.
PHP Code:
if ( !is_user_connected( attacker ) || ( victim == attacker ) )
return HAM_IGNORED;
__________________