Code:
PHP Code:
add this underlocal killerPos = getCreaturePosition(killer)
local positions = {
{ x = pPos.x, y = pPos.y, z = pPos.z },
{ x = pPos.x - 1, y = pPos.y, z = pPos.z },
-- fill yourself
}
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You are dead.")
doSendAnimatedText(getPlayerPosition(cid), "OWNED", 19)
for i = 1, table.maxn(positions) do
doSendMagicEffect(killerPos, i)
end
PHP Code:
function onDeath(cid, corpse, killer)
Last edited: