Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onStatsChange(cid, attacker, type, combat, value)
- if type == STATSCHANGE_HEALTHLOSS then
- if isPlayer(cid) then
- if exhaustion.check(cid, 19999) then
- local health = (getCreatureMaxHealth(cid) - getCreatureHealth(cid))
- doCreatureAddHealth(cid, health)
- doSendAnimatedText(getThingPos(cid), "+".. health, 240)
- end
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement