I want to add cooldown in the castle of the lever 30 minutes I have a code not know if it will help
if (getGlobalStorageValue(cid, 11680) >= os.time()) then
doPlayerSendCancel(cid,"Alavanca ja foi usada a pouco tempo, espere ela carregar!")
doSendMagicEffect(getCreaturePosition(cid), 2)
end...