May anyone help me? This code won't multiplier the damage of weapon when I choose human class on CS 1.6 Zombie Plague. Is there anything wrong?
Code:
public Ham_PlayerTakeDamage(iVictim, iInflictor, iAttacker, Float:flDamage, iDmgBits)
{
if (iDmgBits & DMG_FALL)
{
if (g_nofalldamage[iVictim] == true)
{
return HAM_SUPERCEDE
}
}
if(g_dmgx[iAttacker])
{
SetHamParamFloat(4,(flDamage*1.1))
return HAM_HANDLED
}
if(g_samurai[iAttacker] && g_iCurrentWeapon[iAttacker] == CSW_KNIFE)
{
SetHamParamFloat(4,(flDamage*2.0))
return HAM_HANDLED
}
if(g_snip[iAttacker] && g_iCurrentWeapon[iAttacker] == CSW_AWP || g_iCurrentWeapon[iAttacker] == CSW_SCOUT)
{
SetHamParamFloat(4,(flDamage*2.0))
return HAM_HANDLED
}
return HAM_IGNORED
}