LA
creatureevent

Matando player e ganhando dinheiro

Por larissaots, 03 de jun. de 2015 em Globalevents e Spells

script
1
763
larissaotsL
03 de junho de 2015 às 04:16

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")