Hi, i try to get victim dmg without killing ( i want only dmg for armor not health)
That's what I thought from the beginning but I did not succeed in achieving it. Is there any help?
PHP Code:
public plugin_init() {
RegisterHam(Ham_TraceAttack,"player","fw_TraceAttack")
}
public fw_TraceAttack(victim, inflictor, Float:damage, Float:direction[3], traceresult, damagebits){
if(get_user_weapon(inflictor) == HLW_CROWBAR && get_user_armor(victim))
{
set_user_health(victim, get_user_health(victim))
SetHamParamFloat(3, 100.0)
return HAM_HANDLED;
}
return HAM_IGNORED
}
My question: is it possible to block victim's death if the damage inflicted to the victim is greater then the victim's hp?
__________________