Raised This Month: $12 Target: $400
 3% 

Advanced Rules Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author
neo_gis
Member
Join Date: Sep 2009
Location: Rabat
Plugin ID:
1156
Plugin Version:
1.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Creates a customized rules menu from a .cfg file .
    Old 09-13-2009 , 01:39   Advanced Rules Menu
    Reply With Quote #1

    Advanced Rules Menu by haN


    Description :

    This plugin allows you to manage your server rules and display them to the players on connection to the server .

    - Players can check the rules by typing !rules .
    - Admins can send the rules to other players by typing !showrules .









    Commands :
    • sm_rules - to show the rules menu
    • sm_showrules - admin command to send menu to other players .
    Cvars:

    - sm_rules_descmode : Change Rules description mode : Set 0 to show description on a menu / Set 1 to print description to chat.

    - sm_rules_noconnect : Changes if Rules menu will be displayed on connection or not : Set 0 To display on player connection / Set 1 to NOT display on player connection .




    Screenshots:

    -Rules Menu:

    [IMG]http://img15.**************/img15/8595/rulesmenu.jpg[/IMG]

    - Menu Description Mode:

    [IMG]http://img441.**************/img441/664/rulesdesc2.jpg[/IMG]
    - Chat Description Mode :

    [IMG]http://img406.**************/img406/7272/rulesdesc.jpg[/IMG]




    How To Install :


    1. Extract rules.zip in the cstrike folder .
    2. OR:
    - Copy rules.smx to addons/sourcemod/plugins .
    - Copy rules.sp to addons/sourcemod/scripting .
    - Copy rules.cfg to addons/sourcemod/configs .
    3. Using RCON do : "sm plugins load rules" .




    Changelog:
    Code:
     
    12 September 2009 : 
        - Itinial Release. 
     
    14 September 2009 : UPDATED TO VERSION 1.1    
        - Added cVar for Modes for rules description .
        - Added cVar for option to desactivate rules menu showing on connection
     
    16 September 2009 : UPDATED TO VERSION 1.2
        - Fixed small bug . 
        - Added return to same page when menu is paginated .
    
    5 April 2010 : UPDATED TO VERSION 1.3
       - Fixed BuildPath()
       - Excluded bots from clients ....
    Attached Files
    File Type: cfg rules.cfg (401 Bytes, 6612 views)
    File Type: zip rules.zip (8.5 KB, 12531 views)
    File Type: sp Get Plugin or Get Source (rules.sp - 8619 views - 7.7 KB)

    Last edited by neo_gis; 06-29-2010 at 17:01.
    neo_gis is offline
    Send a message via MSN to neo_gis Send a message via Skype™ to neo_gis
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 09-13-2009 , 01:44   Re: Advanced Rules Menu
    Reply With Quote #2

    Woot first post. Thanks again for writing this up. Now SourceMod has an actual !rules plugin that doesn't make server administrators weep.

    Small Bug: You forgot a Plugin_Handled in in Action:RulesMenu(client, args) and Action:ShowRules(client, args) causing the plugin to return "unknown command" in console.
    And just so you have the others in the same place: When you press "Back" after selecting a rule, it does not take into account what rule the player was currently viewing. If a server has enough rules to trigger a seperate page, the user goes back to page 1 instead of the page they were current on.

    Last edited by thetwistedpanda; 09-14-2009 at 00:59.
    thetwistedpanda is offline
    neo_gis
    Member
    Join Date: Sep 2009
    Location: Rabat
    Old 09-13-2009 , 12:43   Re: Advanced Rules Menu
    Reply With Quote #3

    will add the two different modes when i can !
    neo_gis is offline
    Send a message via MSN to neo_gis Send a message via Skype™ to neo_gis
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 09-14-2009 , 05:53   Re: Advanced Rules Menu
    Reply With Quote #4

    So, does all the rules displayed in menu on the left side of screen?
    __________________
    olj is offline
    Edhmelus
    Senior Member
    Join Date: Aug 2009
    Old 09-14-2009 , 06:22   Re: Advanced Rules Menu
    Reply With Quote #5

    I support this! So it is like this?

    ~~~RULES~~~
    1. Haxxing forbidden
    2. No shivastacking
    3. To TKIng

    And when I click on 2 for example it explains what shivastacking is or?

    Because, I want to use this for my L4D server and would be happy if you could make 1 plugin where it doesnt pop up on connection so I can put the information into my advertisements that there are !rules that should be read (because I use other mods like perkmods who pop at the beginning)
    __________________


    Server is using Perkmod and we are in love with the Grasshopper, Toungetwister and other things.

    We are also currently recruiting (EU) people only. Going to merge with another clan soon and change from Eternal Silence.
    Edhmelus is offline
    h00x
    Senior Member
    Join Date: Jun 2009
    Old 09-14-2009 , 06:46   Re: Advanced Rules Menu
    Reply With Quote #6

    I found this useful as a !helpme command showing a menu of how to use installed mods like...

    Example.
    Menu title: 1. Using Grenades.
    Text: How to use console and bind and setting the commands etc. etc.

    Not only does it clean up the advertisements in chat showing people the commands it keeps the new players from asking every few mins.

    Could you add support for \n for newlines? I noticed when you type a rather long message, it runs off the right side of the screen.

    Great plugin!
    h00x is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 09-14-2009 , 07:45   Re: Advanced Rules Menu
    Reply With Quote #7

    How about that

    - you type !help

    the menu comes out

    you chose number 1 - "HAX Rules".

    Then, depending on adjustable cvar (which should be also implemented), a message appears either in chat area or in console, describing the rules on a given topic (something like "HAX users will be shot in the balls if spotted" )

    This would be more convenient imho.

    GJ btw, +carma
    __________________

    Last edited by olj; 09-14-2009 at 07:48.
    olj is offline
    h00x
    Senior Member
    Join Date: Jun 2009
    Old 09-14-2009 , 07:52   Re: Advanced Rules Menu
    Reply With Quote #8

    The !help and sm_help is already used in sourcemod to list all the commands.
    h00x is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 09-14-2009 , 08:10   Re: Advanced Rules Menu
    Reply With Quote #9

    Quote:
    Originally Posted by h00x View Post
    The !help and sm_help is already used in sourcemod to list all the commands.
    No matter what the command is, even if it is !OMG_HELP_ME_FFS. I just asked if described way would be better than showing both choices and rules as a menus.

    Btw, why this is for CS only? No specific cs:s stuff there, or im wrong?
    __________________

    Last edited by olj; 09-14-2009 at 08:12.
    olj is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 09-14-2009 , 11:03   Re: Advanced Rules Menu
    Reply With Quote #10

    It's specified for CS:S because I originally requested it for CS:S (see here: http://forums.alliedmods.net/showthread.php?t=103413). He's already aware of a request for a cvar to change the menu functionality to chat, rather then appearing in a secondary window. However, due to the way he wrote the code, he has to completely rewrite his functions to take into account the current KeyValue so I'm not sure when he can get around to it .
    thetwistedpanda 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 20:52.


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