kimokimo
Kimo
as the title say the player respawn in the event with no hp and the docreatueaddhealth dont work but the mana function work anyone? :S
PHP:
function onPrepareDeath(cid, deathList)
if(KOH_isOnArena(cid)) then
if(KOH_hasCrownOwner() and KOH_getCrownOwner() == cid) then
KOH_playerDropCrown(cid)
end
doCreatureAddHealth(cid, getCreatureMaxHealth(cid), true);
doCreatureAddMana(cid, getCreatureMaxMana(cid), true);
KOH_movePlayersToArena(cid, "You died and dropped crown. Try to get it back!")
return false
end
return true
end