yes, indeed. It's used in a npc plugin, but the awkward thing is that the npc shouldn't take damage to himself.
Code:
public TakeDamage(victim, weapon, attacker, Float:damage, damagetype) {
static ClassName[32]
pev(victim, pev_classname, ClassName, charsmax(ClassName))
if (equal(ClassName, "NPC")) {
pev(victim, pev_health, g_Health)
UserDamage[attacker] += damage;
blablabla ......