• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

GlobalEvent [REVSCRIPTSYS] Autobrodcast for your server

Hyagosrs

Member
Joined
Mar 10, 2018
Messages
94
Solutions
1
Reaction score
11
This is the AutoBroadcast messages for your server

data/scripts/globalevent/autobroadcast.lua

Lua:
local autoBroadcast = GlobalEvent("AutoBroadcast")
function autoBroadcast.onThink(interval, lastExecution)
    local messages = {
    "[DONATES]: write your message here",
    "[COMMANDS]: write your message here "
}

    Game.broadcastMessage(messages[math.random(#messages)], MESSAGE_EVENT_ADVANCE)
    return true
end

autoBroadcast:interval(300000) --5 minutes
autoBroadcast:register()
 
This is the AutoBroadcast messages for your server

data/scripts/globalevent/autobroadcast.lua

Lua:
local autoBroadcast = GlobalEvent("AutoBroadcast")
function autoBroadcast.onThink(interval, lastExecution)
    local messages = {
    "[DONATES]: write your message here",
    "[COMMANDS]: write your message here "
}

    Game.broadcastMessage(messages[math.random(#messages)], MESSAGE_EVENT_ADVANCE)
    return true
end

autoBroadcast:interval(300000) --5 minutes
autoBroadcast:register()
Its it possible to make message hang in middle of screen for longer time ?
 
Back
Top