MM Try this...
local lives = 80000
function onDeath(cid, corpse, deathList)
setPlayerStorageValue(cid, lives, getPlayerStorageValue(cid, lives) - 1)
if getPlayerStorageValue(cid, lives) == 0 then
local name = getCreatureName(cid)
local players = db.getResult("SELECT * FROM...