Code:
public sandbag_TakeDamage_Post(iEnt, iInflictor, iAttacker, Float:flDamage, damagebits)
{
if(!pev_valid(iEnt))
return
static className[32]
pev(iEnt, pev_classname, className, charsmax(className))
if(!equali(className, g_szClassName))
return
new Float:health;
pev(iEnt, pev_health, health);
if(is_user_connected(iAttacker) && health > 0)
{
client_print(iAttacker, print_center, "Sandbag HP: %1.f", health)
}
}
ideea?
__________________