Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onThink(interval, lastExecution)
- local messages = math.random(1, 100)
- if((messages >= 50) and (messages < 83)) then
- messages = db.getResult("SELECT text FROM `z_news_tickers` order by date desc limit 0,3")
- elseif((messages >= 83) and (messages < 97)) then
- messages = db.getResult("SELECT text FROM `z_news_tickers` order by date")
- elseif((messages >= 97) and (messages == 100)) then
- messages = db.getResult("SELECT text FROM `z_news_tickers` order by date desc limit")
- end
- doBroadcastMessage("Novidades globalwar.com.br: " ..messages:getDataString("text").. "", MESSAGE_STATUS_CONSOLE_ORANGE)
- return TRUE
- end
Advertisement
Add Comment
Please, Sign In to add comment