Quote:
Originally Posted by SnoW
And still it should be:
Code:
if ( get_user_team( iAttacker ) == get_user_team( iVictim ) || !get_pcvar_num( CVAR_mp_friendlyfire ))
return HAM_IGNORED;
|
Wrong.
His code will work as:
If players are not on same team, continue.
If players are on the same team and mp_friendlyfire is enabled, continue.
If players are on the same team and mp_friendlyfire is disabled, stop.
Your code will work as:
If players are not on the same team, stop.
If players are on the same team and mp_friendlyfire is enabled, stop.
If players are on the same team and mp_friendlyfire is disabled, continue.
It's simple logic.
__________________