PHP Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damagebits)
{
if (get_user_weapon(attacker) == CSW_DEAGLE)
{
SetHamParamFloat(4, ( damage *= get_pcvar_float( toggle_dmg ) ) )
return HAM_IGNORED;
}
return HAM_IGNORED;
}
This works because damage*=get_pcvar_float means
PHP Code:
damage = damage * get_pcvar_float( toggle_dmg )
You are just setting the value for the "damage" variable, but you don't assign it
__________________