SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 22/02/2013, 09:00 AM   #1
Biesmen
High-roller
 
Biesmen's Avatar
 
Join Date: May 2009
Posts: 1,060
Reputation: 665
Default Automated Messages (COMPLETELY DYNAMIC! RANDOM, Add,remove,edit lines, easy-to-install!]

Automated Messages 4.0 [COMPLETELY DYNAMIC!]
Author: Biesmen

Note: Click here to go to the previous thread (which may be locked)

Intro
Two years ago I created an Automated Messages filterscript. I wanted to improve the script but I couldn't get the time to update it to the version which I released now. This version changes the system and features of the older versions, so I decided to create a new thread. The previous thread is also outdated and I didn't like it's title!

Filterscript explanation
This is a regular "Automated Random Message" script with a lot more features which makes it easy for a server admin to change/add/remove existing lines. This version also makes the feature "plug&play" possible. You can simply download the amx file, throw it into your filterscripts folder, modify server.cfg (add the filterscript) and run the server. The txt file will be created automatically, and you can completely control the script in-game.

Script features
Note: You must be logged in as a RCON Admin to use the commands/dialog!

Commands
Quote:
/nextline <line> - Will announce up "<line>" as the next line.
/messages - Will open the Dialog Control Panel
Dialog Control Panel
Quote:
Modify the delay between the messages (the timer seconds)
Add new lines
Modify existing lines
Remove lines
Toggle the timer (disable/enable the messages)
Script
Quote:
If messages.txt doesn't exist, it will be automatically generated
All messages are random, it will not repeat the same messages
Default limits
Quote:
Length of the message lines: 128 [Do not increase!] (This will be 60 in the video)
Max lines: 20 (You can change it in the source)
Preview
[ame]http://www.*******.com/watch?v=hBwLkWLXat8[/ame]

Download
Note: To compile the script you'll need sscanf2 created by ****** from here
Pastebin - Version: 4.0
Mediafire - Version 4.0
(includes AutoMessage.amx, AutoMessage.pwn and SSCANF 2.8.1)

How to install
- Extract all files to the desired folders.
- Open server.cfg
- Add to end of the line "filterscripts" "AutoMessage"
Example:
filterscripts cargoship AutoMessage
(You don't need cargoship for this filterscript )
- Launch your server
- Go in-game and login as rcon
- Type /messages

Known bugs/errors
- Sometimes it will take a bit longer to display a message than you entered. This is because the function "MessageTimer()" is checking if the chosen line isn't equal to the last line that has been announced, if the chosen line is the line you wanted to announce as the next line (/nextline) and if the line isn't equal to the amount of seconds you entered (the delay between each message).

Credits
Biesmen
The guys from the Dutch board to test it/comment on it!

Have fun!

Last edited by dugi; 22/02/2013 at 05:44 PM.
Biesmen is offline   Reply With Quote
Old 22/02/2013, 09:05 AM   #2
Biesmen
High-roller
 
Biesmen's Avatar
 
Join Date: May 2009
Posts: 1,060
Reputation: 665
Default Re: Automated Messages (COMPLETELY DYNAMIC! RANDOM, Add,remove,edit lines, easy-to-install!]

I did the wrong title prefix! Facepalm.jpg!
Could a moderator fix it and remove this reply please?
Biesmen is offline   Reply With Quote
Old 22/02/2013, 09:34 AM   #3
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,682
Reputation: 484
Default Re: Automated Messages (COMPLETELY DYNAMIC! RANDOM, Add,remove,edit lines, easy-to-install!]

Men this was on my next plan.
You already did it bro.
Congratz!
__________________


making a comeback soon
JaKe Elite is online now   Reply With Quote
Old 23/02/2013, 08:43 AM   #4
Biesmen
High-roller
 
Biesmen's Avatar
 
Join Date: May 2009
Posts: 1,060
Reputation: 665
Default Re: Automated Messages (COMPLETELY DYNAMIC! RANDOM, Add,remove,edit lines, easy-to-install!]

Thanks to the moderator for changing the prefix!
Biesmen is offline   Reply With Quote
Old 23/02/2013, 09:15 AM   #5
Gamer_007
Gangsta
 
Gamer_007's Avatar
 
Join Date: Dec 2011
Location: Connecting...
Posts: 671
Reputation: 11
Default Re: Automated Messages (COMPLETELY DYNAMIC! RANDOM, Add,remove,edit lines, easy-to-install!]

Nice man.Ty,i will use it
Gamer_007 is offline   Reply With Quote
Old 02/03/2013, 12:12 PM   #6
Groot
Little Clucker
 
Join Date: Feb 2013
Posts: 18
Reputation: -8
Default Re: Automated Messages (COMPLETELY DYNAMIC! RANDOM, Add,remove,edit lines, easy-to-install!]

Nice work!
Groot is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit space in lines? [Help please] NeymarJr Scripting Help 2 07/06/2012 11:31 AM
[FilterScript] Automated Messages Biesmen Filterscripts 15 05/04/2012 08:43 AM
how to remove lines properly Duke11 Help Archive 1 06/03/2011 11:55 AM


All times are GMT. The time now is 03:49 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.