• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

player respawn with no hp

kimokimo

Kimo
Joined
Jan 25, 2011
Messages
821
Solutions
6
Reaction score
156
GitHub
karimadnan
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
 
Back
Top