How can this transformed code, so the impact to the head to take more dmg?
PHP Code:
#include <amxmodx>
#include <hamsandwich>
new CvarFloat
public plugin_init()
{
register_plugin("", "", "")
CvarFloat = register_cvar("awp_damage", "50");
RegisterHam(Ham_TakeDamage,"player","TakeDamage");
}
public TakeDamage(victim,inflictor,attacker,Float:damage,damage_bits){
if(inflictor > 0 && inflictor)
SetHamParamFloat(4, get_user_weapon(attacker) == CSW_KNIFE ? get_pcvar_float(CvarFloat) : damage)
}