onStatsChange(cid, attacker, type, combat, value)
if type == STATSCHANGE_HEALTHLOSS then
print("work")
end
return true
end
but as I identify when I took the target's life?Code:onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS then print("work") end return true end
but as I identify when I took the target's life?
only the player "X" have the registerEvent.
So how do I check if his target lost life?
if type == STATSCHANGE_HEALTHLOSS and getCreatureName(cid):lower() == "cave rat" then