davedavy Posted May 26, 2010 Share Posted May 26, 2010 i search a script where comes every time ( 30 seconds) a message comes in chat , ( every time a other message ) and i like to edit self the messages... is that possible? thanx ( sorry for my bad english ) Link to comment
Dark Dragon Posted May 26, 2010 Share Posted May 26, 2010 every 30 seconds? wow thats real spam local messageTable = { "a message", "another message", "something totally different", "etc...", } function outputSpam() outputChatBox(messageTable[math.random(1,#messageTable)],getRootElement(),255,255,255) end setTimer(outputSpam,30000,0) Link to comment
50p Posted May 26, 2010 Share Posted May 26, 2010 Or, https://community.multitheftauto.com/index.php?p= ... ils&id=186 Link to comment
Cannonball Posted May 27, 2010 Share Posted May 27, 2010 every 30 seconds? wow thats real spam local messageTable = { "a message", "another message", "something totally different", "etc...", } function outputSpam() outputChatBox(messageTable[math.random(1,#messageTable)],getRootElement(),255,255,255) end setTimer(outputSpam,30000,0) I wonder, after your last input @ table "etc...", <-- Should that actually require a dot? "," I thought it didnt, but not sure. Link to comment
dzek (varez) Posted May 27, 2010 Share Posted May 27, 2010 Hmm It doesnt require that comma. More - i think this will fail, not run with this.. Link to comment
kevin11 Posted May 27, 2010 Share Posted May 27, 2010 (edited) the guy who made that script looks good to me i never really read Edited May 27, 2010 by Guest Link to comment
dzek (varez) Posted May 27, 2010 Share Posted May 27, 2010 cannoball didnt write any script in this topic, he just quoted o_O Link to comment
Dark Dragon Posted May 27, 2010 Share Posted May 27, 2010 a handy thing with tables is that the last comma can be there but is not needed, but having it there is comfortable when simply copying and pasting new lines cannonballs script looks good to me huh? Link to comment
Castillo Posted May 27, 2010 Share Posted May 27, 2010 a handy thing with tables is that the last comma can be there but is not needed, but having it there is comfortable when simply copying and pasting new linescannonballs script looks good to me huh? lol failure, seems that he dint checked who made it Link to comment
Cannonball Posted May 27, 2010 Share Posted May 27, 2010 I didnt edit'd his script, I quoted it lol. Anyhow, im not sure if it works. Link to comment
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