function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 15000) - os.time() <= 0 then
doPlayerSendCancel(cid, "You can/'t cast this spell.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return false
end
return doCombat(cid, combat, var)
end
function onSay(cid, words, param, channel)
local store,exausted = 156201,30 -- exaust na talk
if getPlayerStorageValue(cid, store) >= os.time() then
doPlayerSendCancel(cid, "wait " .. getPlayerStorageValue(cid, store) - os.time() .. " seconds to use this command again.") return true
end
setPlayerStorageValue(cid, 15000, os.time()+10)
setPlayerStorageValue(cid, store, os.time()+exausted)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "ativado 10 segundos.") return true
end