Try to edit this script to make it works, i'm trying but i can't ;/
PHP:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
local hitKillerName = "field item"
local damageKillerName = ""
if(lastHitKiller ~= FALSE) then
end
if(isPlayer(lastHitKiller) == TRUE) then
end
hitKillerName = getPlayerGUID(lastHitKiller)
else
hitKillerName = getCreatureName(lastHitKiller)
end
if(mostDamageKiller ~= FALSE and mostDamageKiller ~= lastHitKiller and getCreatureName(mostDamageKiller) ~= getCreatureName(lastHitKiller)) then
end
if(isPlayer(mostDamageKiller) == TRUE) then
damageKillerName = getPlayerGUID(mostDamageKiller)
else
damageKillerName = getCreatureName(mostDamageKiller)
end
player = getPlayerGUID
if getPlayerLevel(player) >= 100 then
doBroadcastMessage("O Player " .. player .. " foi morto por " .. hitKillerName .. " e " .. damageKillerName .. ", 17")
else
doBroadcastMessage("O Player " .. player .. " foi morto por " .. hitKillerName .. ", 17")
return TRUE
Last edited: