Jump to content

Help me!


Phoenixx

Recommended Posts

Posted
  
messages = {"msg1","msg2","msg3","msg4"} 
setTimer(function() 
    local randomMsg = math.random(1,#messages) 
    outputChatBox(messages[randomMsg],root,255,255,255,true) 
end 
,3600000,0) 
  

This displays one of those 4 messages every one hour in an infinite loop.

Posted

I guess he wanted to shout the player every hour, he can use this as well.

messages = {"msg1","msg2","msg3","msg4"} --[[ You can add you're message here like example "Hello World" and dont forget to add a "," ]] 
setTimer(function() 
    local randomMsg = math.random(1,#messages) 
        textDisplay = textCreateDisplay ( ) 
        textItem = textCreateTextItem ( messages, 0.5, 0.5, 2, 255, 255, 255, 255, 3, "center", "center" ) 
        textDisplayAddText ( textDisplay, textItem ) 
        for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do 
            textDisplayAddObserver ( textDisplay, thePlayer ) 
        end 
end 
,3600000,0) 

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

That's a server side script.

That script has a problem though, it'll create the text display and the text item every hour, instead of just creating it once and then setting the text.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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...