Cornwallis
Member
- Joined
- Jan 3, 2010
- Messages
- 480
- Reaction score
- 16
SOLVED;
PHP:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
local newpos = { x = 2023, y = 2036, z = 7 }
local health = getCreatureMaxHealth(cid)
if (getPlayerSkullType(cid) <= 2) then
doCreatureAddHealth(cid, health, TRUE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "No Skull!", TALKTYPE_ORANGE_1)
doTeleportThing(cid, newpos)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You have died without a white or red skull, meaning you do not get punished.")
return FALSE
end
if (getPlayerSkullType(cid) >= 3) then
registerCreatureEvent(cid, "PlayerDeath")
return TRUE
end
end
Last edited: