Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onDeath(cid, corpse, deathList)
- local killer = deathList[1]
- if getPlayerStorageValue(cid, 15122) >= 1 then
- doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
- setPlayerStorageValue(cid, 12577, getPlayerStorageValue(cid, 12577) + 1)
- setPlayerStorageValue(killer, 12578, getPlayerStorageValue(killer, 12578) + 1)
- doPlayerSendTextMessage(cid, 27, "Voce perdeu o duelo, e tem o total de "..getPlayerStorageValue(cid, 12577).." derrotas.")
- doTeleportThing(cid, {x = getPlayerStorageValue(cid, 18210), y = getPlayerStorageValue(cid, 18211), z = getPlayerStorageValue(cid, 18212)}, false)
- setPlayerStorageValue(cid, 15122, -1)
- setPlayerStorageValue(killer, 15122, -1)
- doPlayerSendTextMessage(killer, 27, "Voce ganhou o duelo, e tem o total de "..getPlayerStorageValue(killer, 12578).." vitórias")
- setPlayerStorageValue(killer, 15215, -1)
- setPlayerStorageValue(cid, 15215, -1)
- doCreatureSetSkullType(killer, 0)
- doCreatureSetDropLoot(cid, false)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement