[FilterScript] Automated Messages
#1

Automated ClientMessage Filterscript 3.0
Created by:
Biesmen


About
As I am on my college now, I am bored. I have to create a webiste (Application Programmer education), but it is already finished. So I thought of creating something which could be useful for people who do not know how to make an automated dynamic client message system, or are too lazy to create one. The filterscript has no credits ingame, just when the server starts up. This client message system has a file called messages.txt in the scriptfiles folder. The script reads all lines in a file, and will store the total amount of lines. A timer will be set to send a random line to everyone's client. There is color support now.

Changes in Version 3.0
Quote:

- Color support added. You can use CSS Color codes now. Usage: #code (E.G for white: #FFFFFF)
- /nextline [line] command added. This will announce the next line of your choice.
- Fixed the script sending the interval between each message (the amount of seconds)
- Fixed the script sending blank strings

Warning: The first line in messages.txt is and should always be an integer! This line is defining the amount of time between each message.


Commands:
Quote:
/toggletimer - Toggles the timer. It can deactive the timer so no more messages will be send, but you can also activate it again with this command.
/setline [line] [message] - Will modify the lines that will be sent to all players their client.
/messagetime - Configure the time between each message that will be sent to everyone their client.
/nextline [line] - The next line to be announced will be the line of your choice.

How-to-use
Download the file and extract the files to the correct folder. The folders are shown in the .rar file. You can also copy the pastebin URL and create messages.txt in "/scriptfiles". An example of messages.txt:
Quote:
Originally Posted by messages.txt
60
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
You also need SSCANF 2 made by ****** to compile the script if you make any changes.
Click here for sscanf 2.
SSCANF 2 is already included in the .rar file.

SAMP-SERVER.conf
Add this text to the "filterscripts" line:
Quote:

AutoMessage

Preview
[ame]http://www.youtube.com/watch?v=6ZpTHiaQgBY[/ame]

Download
Pastebin Version: 3.0 - NEW
Mediafire Version: 3.0 - NEW
Pastebin Version: 2.0
Mediafire Version: 2.0
Pastebin Version: 1.0
Mediafire Version: 1.0

No mirrors allowed because of security reasons. Ask me for a new mirror if needed

Known bugs
-

Credits
Biesmen
****** - sscanf2

Feedback allowed!

Enjoy
Reply
#2

GG man 10/10
Is a good filterscripts
Reply
#3

Wow Awesome :
Reply
#4

Awesome
filterscript
ty :d
Reply
#5

One of 1000, but this one is better. Still not the best, because in my opinion it should be all dynamic.
Reply
#6

Quote:
Originally Posted by wups
Посмотреть сообщение
One of 1000, but this one is better. Still not the best, because in my opinion it should be all dynamic.
Working on it Thanks for the feedback.
Reply
#7

Thanks.
Reply
#8

Version 2.0 released!
Changes in Version 2.0 (The full dynamic update)
Quote:

- The script will detect the maximum amount of lines in messages.txt. You do not have to define the maximum lines
yourself.
- The /setline command will now save every line you change in messages.txt
- /messagetime will save the value of the time in messages.txt

This filterscript is 90% dynamic now!
Reply
#9

[Image: n-560x95.png]" target="_blank">
Reply
#10

@Prodrifter
What?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)