AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Advanced Rules Menu (https://forums.alliedmods.net/showthread.php?t=103430)

neo_gis 09-13-2009 01:39

Advanced Rules Menu
 
3 Attachment(s)
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 ....


thetwistedpanda 09-13-2009 01:44

Re: Advanced Rules Menu
 
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.

neo_gis 09-13-2009 12:43

Re: Advanced Rules Menu
 
will add the two different modes when i can !

olj 09-14-2009 05:53

Re: Advanced Rules Menu
 
So, does all the rules displayed in menu on the left side of screen?

Edhmelus 09-14-2009 06:22

Re: Advanced Rules Menu
 
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)

h00x 09-14-2009 06:46

Re: Advanced Rules Menu
 
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!

olj 09-14-2009 07:45

Re: Advanced Rules Menu
 
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" :mrgreen:)

This would be more convenient imho.

GJ btw, +carma

h00x 09-14-2009 07:52

Re: Advanced Rules Menu
 
The !help and sm_help is already used in sourcemod to list all the commands.

olj 09-14-2009 08:10

Re: Advanced Rules Menu
 
Quote:

Originally Posted by h00x (Post 932392)
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?

thetwistedpanda 09-14-2009 11:03

Re: Advanced Rules Menu
 
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 :|.


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

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