[FilterScript] Automated Messages (COMPLETELY DYNAMIC! RANDOM, Add,remove,edit lines, easy-to-install!]
#1

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.youtube.com/watch?v=hBwLkWLXat8[/ame]

Download
Note: To compile the script you'll need sscanf2 created by Y_Less 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!
Reply
#2

I did the wrong title prefix! Facepalm.jpg!
Could a moderator fix it and remove this reply please?
Reply
#3

Men this was on my next plan.
You already did it bro.
Congratz!
Reply
#4

Thanks to the moderator for changing the prefix!
Reply
#5

Nice man.Ty,i will use it
Reply
#6

Nice work!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)