What is the difference between the codes?
Code:
public fw_TakeDamage(inflictor, victim, attacker, Float:damage)
{
if(is_user_alive(attacker) && g_has_weapon[attacker] && get_user_weapon(attacker) == CSW_WPN)
{
SetHamParamFloat(bla bla bla);
}
}
Code:
public fw_TakeDamage(inflictor, victim, attacker, Float:damage)
{
if(!is_user_alive(attacker) || !g_has_weapon[attacker] || get_user_weapon(attacker) != CSW_WPN)
return HAM_IGNORED;
SetHamParamFloat(bla bla bla);
return;
}
__________________