#Rules by #Octothorp Team
06 August 2015, 3:01 AM



-= WHAT IS IT? =-


A simple script that will show a preset message every time a new round starts. You can configure the message to not only be a set of server rules, but also map / gamemode instructions, event announcements, random custom strings and whatever else you can possibly imagine.


-= HOW TO DOWNLOAD AND USE =-


[1] Right click the download button and select the 'Save link as...' option.
[2] Save the file into the following directory, or save it anywhere and then move it here:
C:\Users\Your Name\Documents\Superfighters Deluxe\Scripts
[3] Rename the file; this step is important as you'll be required to write the file name along with the command to activate it any time you want to use it.
[4] Make any desired changes to the script settings (the default script does NOT come with the rules and color shown in the preview image).
[5] Save the changes, then go in-game.
[6] When in-game, write the following command into the chat:
/startscript filename
Instead of "filename", write the name of the file you chose in step [3]. Be sure to write it correctly otherwise you won't be able to activate it (for example, if I name the file rules.txt I will write /startscript rules in-game).


-= FAQ =-


Q: Can you add a command to let users activate the popup manually (like /rules)?
A: No. The game doesn't allow us to set custom commands at the moment.


Q: How do I add more rules?
A: After the last plus (+) symbol, press Enter, then Tab, then fill the following in:
"your rule here\n" +
You can add as many of these as you want, just make sure the last line (before the next command) ends with a semi-colon (;) instead of a plus (+).
Don't delete the "\n" or the quote marks! They're part of the script. Only edit the text itself.


Q: How do I add more chat MOTDs?
A: After the last comma (,) start a new line (Enter and then Tab) and fill the following in:
"your ad here",
You can add as many of these as you want, just make sure the last line (before the };) doesn't end with a comma (,) like the rest but rather with just a quote mark (").


Q: How do I disable chat ads completely?
A: Find the following line in the script:
private const bool SHOW_CHAT_ADS = true;
Change "true" to "false".


Q: How do I change the color of the popup message?
A: Go to this website and select your desired color. After you've found one, find this line inside the script:
private Color POPUP_TEXT_COLOR = new Color(255, 0, 0);
Then change the numbers to the color you chose (RGB value).


Q: Can I or anybody else read the rules from the popup after it disappears?
A: You'll have to wait till the end of the round in order for it to appear again. If you want your rules to appear throughout the game consider writing them as chat ads instead of inside the popup.



DOWNLOAD
(3.3 Kb)
Category: Scripts - Small Scripts | Added by: chelog
Views: 4173 | Downloads: 1885 | Comments: 23 | Rating: 3.9/7
Total comments: 23
avatar
0
22 fulopbenjamin2014 • 11:45 PM, 23 October 2019
If someone is reading this(probably not) than answer this question. I tampered with the settings of this but the rules pop up for just a fraction of a second, if someone can answer this i would be very grateful! Other than that everything is fine
avatar
0
23 KliPeH • 9:52 PM, 17 May 2022
There's a new and improved version of this script on the Workshop. There is no reason to use this anymore.
https://steamcommunity.com/sharedfiles/filedetails/?id=1607020145
avatar
0
21 escobedosantiago89 • 6:56 AM, 19 October 2018
Hola :v
avatar
0
18 [TR]Kertenkele • 9:50 PM, 12 January 2017
It isn't working.Can you add example on script? If you do it,I can change just sentences.(sorry for my English) sad
avatar
0
20 KliPeH • 0:56 AM, 10 March 2017
Your examples are already there as preset "Rule #"s. Just change those without removing the "\n +" part and you should be good to go.
avatar
0
17 a_e_l_potts • 6:50 AM, 22 November 2016
I downloaded the script and followed everything
Its just for the editing part im having trouble with

http://prntscr.com/da8on8
Heres a screenshot
(The stuff in the rectangle is the stuff i edited)
Reply and tell me what i did wrong please weep
avatar
0
19 KliPeH • 0:55 AM, 10 March 2017
Replace all the semi-colons (;) but the last one with pluses (+).
avatar
0
16 ivybasildegrano • 6:32 AM, 23 May 2016
prof
avatar
0
15 Jorge Rivero • 9:53 PM, 06 May 2016
Como el párrafo Hace Poner Una regmero porq nose e intente y no funciona. AYUDA
avatar
0
14 mrxkickassx123 • 0:07 AM, 06 May 2016
Hey, i modified your script slightly into an AFK script, it uses the kill yourself at round start and makes an afk message, would you mind if i upload it?
avatar
0
11 emaduike • 10:37 PM, 16 January 2016
What are the basics to making a rule. u never told me u just said how to add more. not how to add them tho
avatar
0
13 KliPeH • 7:06 PM, 04 March 2016
Download the .txt file which is the script you're going to run on your server. Open it with Notepad or any other text editing program and change each "Rule #" line to the text you want the script to show.

Don't remove the "\n" parts or any quote marks, these are strictly a part of the script and removing them WILL result in a disfunctional script file.
avatar
0
10 vermile256 • 5:01 AM, 16 November 2015
I Have Found A Glitch With A Rule System mellow

T
; expected
Invalid token '" - Rule 2
avatar
0
12 KliPeH • 7:03 PM, 04 March 2016
Not a glitch, you simply forgot to add a semicolon (;) at the end of the line where "Rule 2" is.
avatar
1
8 Wat • 4:11 PM, 12 October 2015
I Really recommend this script if you want to make rules to your own server.  respect
avatar
0
6 weariedcoffee2 • 10:35 AM, 04 October 2015
it doesnt work  cry
avatar
1
7 KliPeH • 0:20 AM, 09 October 2015
My friend and I have been using the script for a whole month before it was officially released and the same setup still works for us today. Make sure you follow the tutorial carefully and you don't remove any important code from the script.

For starters, run the script without modifying it. If it works your modifications caused the errors. If the game doesn't find the script make sure you followed the installation tutorial thoroughly. If it doesn't work at all post a followup comment and we'll look into the problem further.
avatar
0
9 weariedcoffee2 • 2:20 AM, 18 October 2015
ok thank you so much i read your instructions again and i made a mistake adding in my rules now its working ^-^ thx so much now they will obey me! >:D
avatar
0
5 MasterAwesome28 • 10:35 PM, 22 August 2015
Can you post your script with everything already done in the comments please?
avatar
2
1 HoangMarcel • 8:06 AM, 06 August 2015
YES! NOW THEY WILL OBEY! MUHAHAHAHHAHA!!!!
avatar
1
2 KliPeH • 9:33 AM, 06 August 2015
From personal experience - not necessarily; but hey, as long as you've got the script running you have solid rules to reference in case they don't.
avatar
0
3 shutup16 • 3:25 AM, 09 August 2015
How about a visual tutorial this is still kinda confuses me.
avatar
0
4 KliPeH • 9:19 PM, 09 August 2015
I'm too lazy to record a video of me explaining how to do it step by step. Read the instruction under 'HOW TO DOWNLOAD AND USE' again, I've updated them hopefully making them easier to understand.
avatar