Hi, i try to catch how many damage player has been done to a hostage and i found only this code:
Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init()
{
RegisterHam(Ham_Takedamage, "hostage_entity", "hostTakeDamage")
}
public hostTakeDamage(iHostage, iInflictor, iAttacker, Float:flDamage, iDamageType)
{
if( ExecuteHam(Ham_IsPlayer, iAttacker) )
{
SetHamParamFloat(4, 0.0)
return HAM_HANDLED
}
return HAM_IGNORED
}
can i catch it without HAM ? For example, with logevent
Code:
register_event("TextMsg", "TextMsg_Injured_Hostage", "b", "1=4", "2=#Injured_Hostage")
thanks