Phoenixx Posted October 18, 2013 Posted October 18, 2013 I own my server and on it i want to put some INFO ~example : Every 1 hour it says " Admins : [...] - Enjoy The Server and Invite others! Help pls !
cheez3d Posted October 18, 2013 Posted October 18, 2013 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.
-.Paradox.- Posted October 19, 2013 Posted October 19, 2013 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)
Phoenixx Posted October 19, 2013 Author Posted October 19, 2013 @StevyDK i copy this script to server or client??
Castillo Posted October 19, 2013 Posted October 19, 2013 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now