local cfg = {
randSize = 100,
exhaustStorage = 30000,
exhaustSeconds = 10
}
function onSay(cid, words, param, channel)
return
os.difftime(os.time(), getPlayerStorageValue(cid, cfg.exhaustStorage)) >= cfg.exhaustSeconds and
doCreatureSay(cid, "You got number ".. math.random(cfg.randSize) .."!", TALKTYPE_ORANGE_1) and
setPlayerStorageValue(cid, cfg.exhaustStorage, os.time())
or
doPlayerSendCancel(cid, "You can only use this command once every ".. cfg.exhaustSeconds .." seconds.")
end