devildead622 Posted March 5, 2013 Posted March 5, 2013 what function for send message for all in server?
iPrestege Posted March 5, 2013 Posted March 5, 2013 How you will use it? type command or what the fu ck?
devildead622 Posted March 5, 2013 Author Posted March 5, 2013 wanna do random messages during game @ Mr.Pres[T]ege, responded very fast ^^²
iPrestege Posted March 5, 2013 Posted March 5, 2013 setTimer(outputChatBox, 10000, 0, "Welcome To Our Server ((=", getRootElement(), 0, 255, 0, true) This is server side code and this message will come every 10 seconds.
PaiN^ Posted March 5, 2013 Posted March 5, 2013 setTimer(outputChatBox, 10000, 0, "Welcome To Our Server ((=", getRootElement(), 0, 255, 0, true) This is server side code and this message will come every 10 seconds. wanna do random messages during game
iPrestege Posted March 5, 2013 Posted March 5, 2013 Messages = { "MSG[1]", "MSG[2]", "MSG[3]", "MSG[4]", "MSG[5]", "MSG[6]", } addEventHandler("onResourceStart",resourceRoot, function () local theMessages = Messages[math.random(1,#Messages)] setTimer(outputChatBox,1000,0,theMessages,getRootElement(), 0, 255, 0, true) end ) Change the event as what you wan't.
iPrestege Posted March 5, 2013 Posted March 5, 2013 (edited) Use local variables instead. Next Time . Edited March 5, 2013 by Guest
devildead622 Posted March 5, 2013 Author Posted March 5, 2013 very thanks!very thanks!very thanks!very thanks!very thanks! =D
iPrestege Posted March 5, 2013 Posted March 5, 2013 Work With Me Server Side ((= ! Just Make Sure it's Server!
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