I kill enemy player and i dont give soul and i dont give Message :
Path is good. Please help me!
Code:
function onKill(cid, target, lastHit)
if isPlayer(target) == TRUE and isPlayer(cid) == TRUE then
doPlayerAddSoul(cid, 5)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "+5 soul for kill " .. getCreatureName(target):lower())
end
return true
end
Code:
<event type="kill" name="soulpozabiciu" event="script" value="soulpozabiciutypa.lua"/>