Hi, can you help me? I know that this may seem simple to you, but since I can't find that someone has created it, could you do it? I think it will take you little time. This script is for tfs 1.2 "creaturescripts". Its function is that when a player dies and contains said storage, his character is permanently deleted. this is an example of which I tried to create an experimental one.
function onDeath(cid, corpse, deathList)
if getPlayerStorageValue(cid,61266) < 1 then
return true
end
db.storeQuery("UPDATE players SET deleted = 1 WHERE id = " .. player:getID());
return true
end