11.10.2011, 12:31
(
Последний раз редактировалось Biesmen; 05.04.2012 в 16:15.
)
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
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:
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:
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:
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
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 |
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. |
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 |
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 |
[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