can someone fix this script ? i self made it but nothing good for me
the script dont got any erros
in console then loading and then getting black skull
please help me
i will rep ++ 





Code:
function onThink(cid)
local name = getCreatureName(cid)
local skullNames = {"Yellow", "Green", "White", "Red", "Black"}
local creatureSkull = getCreatureSkullType(cid)
if creatureSkull ~= SKULL_Black then
doBroadcastMessage("Omg " .. name .. " is on killing spree!")
end
return TRUE
end