Ir para conteúdo

Posts Recomendados

Créditos: Elwyn, arquivo32

AStkZca.png

Tutorial
creaturescripts/scripts/kill.lua

function onKill(cid, target)
    if isPlayer(target) then
        doPlayerAddMoney(cid, 500) ---------- QUANTIDADE DE DINHEIRO, TA CONFIGURADO 500GPS
    end
    return true
end

creaturescripts.xml

<event type="kill" name="KillPlayer" event="script" value="kill.lua"/>

login.lua, antes de return true:

registerCreatureEvent(cid, "KillPlayer")
Link para o comentário
https://xtibia.com/forum/topic/234439-matando-player-e-ganhando-dinheiro/
Compartilhar em outros sites

×
×
  • Criar Novo...