function onSay(cid, words, param)
if(getPlayerPremiumDays(cid) <= 0)then return true,doPlayerSendCancel(cid, 'Need premium.')end
if exhaustion.get(cid, 501) then
doPlayerSendCancel(cid, 'Você precisa espera 10 segundos para usar novamente.')
elseif getPlayerStorageValue(cid, 32001) == 1 or getPlayerStorageValue(cid, 17000) == 1 or getPlayerStorageValue(cid, 17001) == 1 then
doPlayerSendCancel(cid, "Você não pode usar bike e correr ao mesmo tempo")
return false
elseif isCreature(cid) then
doCreatureSay(cid, "correr", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 19000, 1)
doChangeSpeed(cid, 1 * 5000)
doSendMagicEffect(getPlayerPosition(cid), 1)
exhaustion.set(cid, 501, 10)
addEvent(function()
setPlayerStorageValue(cid, 19000, 0)
doRegainSpeed(cid)
end, 15000) -- Tempo que vai durar a talkaction
end
return true
end
local minutes = 15 -- Minutos
function onSay(cid, words, param)
if(getPlayerPremiumDays(cid) <= 0)then return true,doPlayerSendCancel(cid, 'Need premium.')end
doSetCreatureLight(cid, 50000, 2000, minutes*60*1000)
doSendAnimatedText(getCreaturePosition(cid), "Luz", math.random(1, 255))
return true
end