add This
function getExhausted(cid, storage)
return os.time() > getCreatureStorage(cid, storage) and true
end
function setExhausted(cid, storage, cooldown)
return doCreatureSetStorage(cid, storage, os.time() + cooldown - 1)
end
test this in Creature scriptes :D...