function onDeath(cid, corpse, killer)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Ohh.. fuck! You died. Go kill your killer!")
if isPlayer(killer) == TRUE then -- add frag for killer
local frags = getPlayerFrags(killer)
if frags == 5 then
broadcastMessage(getCreatureName(killer) .. " is on killing spree! He killed 5 players!", MESSAGE_STATUS_CONSOLE_ORANGE)
elseif frags == 10 then
broadcastMessage(getCreatureName(killer) .. " is dominating! He killed 10 players!", MESSAGE_STATUS_CONSOLE_ORANGE)
elseif frags == 25 then
broadcastMessage(getCreatureName(killer) .. " is GODLIKE! He killed 25 players!", MESSAGE_STATUS_CONSOLE_ORANGE)
elseif frags == 50 then
broadcastMessage(getCreatureName(killer) .. " is UNSTOPPABLE!! He killed 50 players! DO SOMETHING!", MESSAGE_STATUS_CONSOLE_ORANGE)
end
end
end