Raised This Month: $7 Target: $400
 1% 

[ANY] BETA Advanced Rules Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author
eyal282
Veteran Member
Join Date: Aug 2011
Plugin ID:
6433
Plugin Version:
2.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    31 
    Plugin Description:
    This is an advanced rules menu that is highly intelligent and is superior to all other rules plugins.
    Old 02-12-2019 , 17:11   [ANY] BETA Advanced Rules Menu
    Reply With Quote #1

    This is a rules plugin that supercedes all other rule plugins, as this is a type of plugin that allows you to add rules in-game, delete them and even edit their positions. Modifying is not possible, you can just delete and move positions.

    This is beta because I didn't have time to check all bugs, you can help with that of course.

    If you don't want to use the in-game way to add rules, just create 2 rules in-game and you'll find a new file in addons/sourcemod/configs/rules.cfg, you'll probably easily understand how to edit it, it works in a system named "key values".

    Unlike some rule plugins, this is not the annoying type of rules that ambushes him on connect and tells to accept. It will display the rules every connect, and a player can exit the rules without receiving any penalty. They will know about the possible consequences of not accepting yet, and admins are able to force players to view the rules with !showrules. When a new rule is added, all players will need to check the rules again, and the new rule will be marked with a * so the player knows what to read relative to the last time a player hit "accept rules"

    Cvars:

    advanced_rules_force_show - Forces the player to view the rules on connect. If set to 0, just informs the player that he needs to view the rules. The player will not be forced if there aren't any new rules relative to the last time the player accepted the rules.

    Commands:

    !rules - Displays the rules.
    !showrules - Allows a generic admin to force a player to open the rules menu.
    !managerules - Allows a ROOT admin to edit the contents of the rules menu, features are adding a new rule, deleting an existing rule and moving a rule to a certain position. If you require editing a rule's name / description, delete it and re-create it.
    !addrule_name <rule name> - When creating a new rule, this command is used to set the new rule's name.
    !addrule_desc <rule description> - When creating a new rule, this command is used to set the new rule's description. After both commands were used, pressing "Add a rule" will add the new rule to the end of the key value file. Inserting "/n" ( without quotes ) translates to creating a new line.

    The point in this plugin is to ditch the annoying "server rules in a forum nobody is going to check" and instead, players will be able to view the rules in their spare time ( probably when dead ) and will be able to activate basic logic to avoid being banned. You can input your entire server rules in this. You have 256 characters per rule description, which should be more than enough. Adding rules is easy and I advise very much against editing the key value file, which you don't even have to generate by yourself.

    How to install:

    Press "AdvancedRules.smx" and put it inside the folder "addons/sourcemod/plugins" within your game folder ( csgo/cstrike/tf2 etc... )

    Restart the server or better, write this in the chat:

    !rcon sm plugins load AdvancedRules

    Alternatively, you can write this in the console for the exact same effect:

    sm_rcon sm plugins load AdvancedRules

    Please add here your server if it uses this plugin: https://docs.google.com/spreadsheets...it?usp=sharing

    Get Plugin
    View Source

    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334

    Last edited by eyal282; 03-26-2021 at 15:16.
    eyal282 is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 02-13-2019 , 03:05   Re: [ANY] BETA Advanced Rules Menu
    Reply With Quote #2

    Reserved
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 02-25-2019 , 11:12   Re: [ANY] BETA Advanced Rules Menu
    Reply With Quote #3

    Anybody wants to help me discover bugs? PM me if you do and have a server.
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 02-26-2019 , 15:08   Re: [ANY] BETA Advanced Rules Menu
    Reply With Quote #4

    Fixed a destructive bug when changing orders of rules ( positions ) so update instantly if you don't own Updater.
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 02-26-2019 , 15:52   Re: [ANY] BETA Advanced Rules Menu
    Reply With Quote #5

    I have never heard about rules. What does that mean in general?
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 02-26-2019 , 16:19   Re: [ANY] BETA Advanced Rules Menu
    Reply With Quote #6

    Quote:
    Originally Posted by Dragokas View Post
    I have never heard about rules. What does that mean in general?
    You get a menu of rules that the server assigns to itself. Each rule has a description.

    This is what my plugin is superior to: https://forums.alliedmods.net/showthread.php?p=931295
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 02-26-2019 , 16:30   Re: [ANY] BETA Advanced Rules Menu
    Reply With Quote #7

    Ahh, you mean rules like "Do not attack teammates" and so?
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 02-26-2019 , 16:41   Re: [ANY] BETA Advanced Rules Menu
    Reply With Quote #8

    Quote:
    Originally Posted by Dragokas View Post
    Ahh, you mean rules like "Do not attack teammates" and so?
    Yes. And players can agree to them and admins can know when a player last agreed and whether he still has unagreed rules.
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 03-03-2019 , 08:49   Re: [ANY] BETA Advanced Rules Menu
    Reply With Quote #9

    Latest update will return to the same page the client was at when going back to the rules menu from a rule's description.
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334
    eyal282 is offline
    mlov420
    Senior Member
    Join Date: May 2013
    Old 03-04-2019 , 06:00   Re: [ANY] BETA Advanced Rules Menu
    Reply With Quote #10

    Interested in testing this plugin but both the "Get Plugin" version and the pre-compiled .smx require Updater to be on the server or AdvancedRules.smx won't load.

    Code:
    L 03/04/2019 - 05:51:26: [SM] Unable to load plugin "AdvancedRules.smx": Could not find required plugin "updater"

    I know you mentioned this in the OP but could you please remove the requirement of updater, at least make it optional and have the plugin load without it? I would like to test this plugin but it's not worth having to edit the .sp to remove updater and recompile every time you make a bug fix.
    mlov420 is offline
    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

    Forum Jump


    All times are GMT -4. The time now is 01:31.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode