Voce tbm pode usar esta modificação do script !AFK: 
 
--[[ 
   Talking Tp/signs/tiles for TFS 0.2+
   70%shawak,30%Damadgerz
   Idea by Damadgerz
]]--
   local time = 5    -- 1 = 1 sec, 2 = 2 sec, ...
    local say_events = {}
local function SayText(cid)
   if isPlayer(cid) == TRUE then
        if say_events[getPlayerGUID(cid)] ~= nil then
            if isPlayer(cid) == TRUE then
local rand = math.random(1,250)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"The random number is " .. rand .. "." )
            end
            say_events[getPlayerGUID(cid)] = addEvent(SayText, time * 1000 / 2, cid)       
        end                                                       
   end
   return TRUE
end
function onSay(cid, words, param, channel) 
   if(param == '') then
     doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
    return true
    end
    if param == "on" then
       if isPlayer(cid) == TRUE then
           doSendAnimatedText(getPlayerPosition(cid),"Started!", math.random(01,255))
       end
       say_events[getPlayerGUID(cid)] = addEvent(SayText, time * 1000, cid)
       doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"You are now saying random numbers.")
    elseif param == "off" then
           stopEvent(say_events[getPlayerGUID(cid)])
           say_events[getPlayerGUID(cid)] = nil
           doPlayerSendTextMessage(cid,MESSAGE_STATUS_WARNING,"You stopped saying random numbers.")
   end
   return TRUE
end
 
 
<talkaction words="!number" hide="yes" event="script" value="script.lua"/>
 
para ativar é só vc falar !number on e para desativar !number off