Jump to content

Delay messages


Lisandu

Recommended Posts

 

you need to tell exactly your problem, i didn't understand you but as i understand i sent you this,more edit apply set timer.

addEventHandler("onPlayerLogin",root,function()
    if not isElement(source) then return end
    outputChatBox("Welcome Message.", source, 255, 235, 0, true)
end)

function ServerMessages1()
    outputChatBox("Server1.", root, 255, 235, 0, true)
    setTimer(ServerMessages2,(60000*5),1)
end

function ServerMessages2()
    outputChatBox("Server2",root,255,235,0,true)
    setTimer(ServerMessages3,(60000*5),1)
end

function ServerMessages3()
    outputChatBox("Server3", root, 255, 235, 0, true)
    setTimer(ServerMessages4,(60000*5),1)
end

Edited by eoL|Shady
  • Thanks 1
Link to comment

oh thanks?

also i found a one from Random Messages ToPIC

local messages = { 
    {"msg1"}, 
    {"msg2"}, 
    {"msg3"}, 
    {"msg4"}, 
    {"msg5"}, 
    {"msg6"}, 
    {"msg7"} 
} 
  
function test () 
outputChatBox(unpack(messages[math.random(#messages)]), getRootElement(), 255, 0, 0, true) 
end 
setTimer(test, 10000, 0) 

Try this...  SERVER Side

make sure put ur own messages to msg1, msg2 like,

{"Your message"},

 

Edited by Lisandu
its had my messages
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...