Raised This Month: $105 Target: $400
 26% 

Server Rules


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   devicenull (200)
FullThrottle
Member
Join Date: Oct 2004
Old 11-18-2004 , 05:57   Server Rules
Reply With Quote #1

This is an array based rules plugin that will display server rules in a tsay type format in the upper left corner of the players screen.

Commands - can be placed in your server.cfg file or amxx.cfg

amx_addrule "a rule" : Adds a rule to the list

Cvars

sr_color "0,255,0" : RGB color to display the rules
sr_display "20" : Length of time to display the rules
sr_warnings "3" : Max Warnings before action is taken
sr_action "1" : Action to take for violators 0=Warn Only,1=Kick,2=Ban
sr_bantime "60" : Length to ban after max rule violations



Code:
/* Update Log

1.1
	- Changed sr_color so now commas are not used between colors and removed xeroblood's
	code from the project
	- Added keyword processing to display a message to users when they ask how to display the message.
	- Changed default rule color to white.
	- Added the violation menu and the following cvars.
		sr_warnings <- Max Warnings before action is taken
		sr_action <- Action to take for violators 0=Warn Only,1=Kick,2=Ban
		sr_bantime <- Length to ban after max rule violations
	- Added menu command amx_rulemenu
	- Uses the AMXX 1.0 Dynamic menu system.  Set DYNAMICMENU to 0 if you do not have 1.0 running.
	
1.0
	- Initial release
	
*/
Attached Files
File Type: sma Get Plugin or Get Source (server_rules.sma - 34684 views - 8.5 KB)
__________________
FullThrottle
www.wildgamers.net
FullThrottle is offline
wmblade16
Junior Member
Join Date: Jul 2004
Old 11-21-2004 , 12:45  
Reply With Quote #2

nice
wmblade16 is offline
Bry
Member
Join Date: Mar 2004
Old 11-21-2004 , 12:49  
Reply With Quote #3

screeny?
Bry is offline
sub
Senior Member
Join Date: Nov 2004
Location: Morristown, New Jersey
Old 11-21-2004 , 20:21  
Reply With Quote #4

wait need help with this. How do i add a rule i tried using amx_addrule but nothing happened i restarted to see if that is what i had to do still nothing. ALl that is displayed is "Server Rules:"
sub is offline
Send a message via AIM to sub Send a message via MSN to sub
MrGardenHoseMan
Junior Member
Join Date: Aug 2004
Old 11-21-2004 , 21:18  
Reply With Quote #5

For me it doesn't display anything, only something like a transparent letter runing line by line where the rules should be.
MrGardenHoseMan is offline
FullThrottle
Member
Join Date: Oct 2004
Old 11-22-2004 , 00:54  
Reply With Quote #6

Sub you are getting that because you don't have any rules setup. How are you trying to add the rules? To add a rule inside the game then you need the cvar access flag on your account. If you are trying to add a rule by adding it to your amxx.cfg then you need to make sure the local loopback has cvar access.

Then just type:
amx_addrule "[NO] Whatever in the server"
amx_addrule "[YES] Whatever in the server"


When you add a rule you should get a echo back saying something like:
[Server Rules] Entry Added: Your rule you entered
__________________
FullThrottle
www.wildgamers.net
FullThrottle is offline
FullThrottle
Member
Join Date: Oct 2004
Old 11-22-2004 , 00:58  
Reply With Quote #7

Quote:
Originally Posted by MrGardenHoseMan
For me it doesn't display anything, only something like a transparent letter runing line by line where the rules should be.
Make sure your sr_color cvar is set to a rgb value like "0,255,0". If it isn't then it will try to write without a color. Also if you set the color to black it doesn't work either. Not sure why black doesn't work does anyone else have problems with writing messages in black?
__________________
FullThrottle
www.wildgamers.net
FullThrottle is offline
FullThrottle
Member
Join Date: Oct 2004
Old 11-22-2004 , 01:09  
Reply With Quote #8

Quote:
Originally Posted by Bry
screeny?
Up at the top I added a screeny for you.
__________________
FullThrottle
www.wildgamers.net
FullThrottle is offline
Soloist
Senior Member
Join Date: Jun 2004
Location: New York
Old 11-22-2004 , 03:20  
Reply With Quote #9

Can you make it so that when someone joins the server the rules automatic pop up. For me i have to type /rules for them to show up.

EDIT: Ok so i figured that out, but i noticed that when you have the color to be blue(0,0,255) it only displays the text "Server Rules" regardless if you have added rules or not. It works with Green and Red. Other than that good plugin.
Soloist is offline
Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
jusltoco
Member
Join Date: Jul 2004
Old 11-22-2004 , 03:45  
Reply With Quote #10

Is there a way you can make it where when you join the server it always comes up ? i know that /rules makes it show but not when you enter the map on the server.
jusltoco 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 04:11.


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