i need help this script should send text with loot of killed monsters and its does not work, no errors in console.
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
local name = getCreatureName(cid)
local text = ""
if isPlayer(mostDamageKiller) == TRUE and...