local text = {"TOP SEASON"} -- Auto-Mensagens.
local time = 1 -- Intervalo de Tempo em segundos.
local effects = {21, 2, 5, 11, 15, 19, 22, 28, 29, 33, 32, 35, 39, 53, 54, 78, 77} -- Intervalo de Tempo em segundos.
local storage,key = 3423423,1
local function doSendMessageAndEffect(cid, position, loop)
if getPlayerStorageValue(cid,storage) ~= key then return end
doSendAnimatedText(position, text[math.random(#text)], math.random(255))
doSendMagicEffect(position, effects[math.random(#effects)])
if loop then
addEvent(doSendMessageAndEffect,time*1000,cid, getThingPos(cid),true)
end
end
function onSay(cid, words, param)
local position = getThingPos(cid)
doSendMessageAndEffect(cid, position,true)
return true
end