Garry's Mod

Garry's Mod

Not enough ratings
Ingame Rules List
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Tags: Roleplay
Tags: admin, misc
File Size
Posted
736.000 B
16 Dec, 2012 @ 2:31am
1 Change Note ( view )

Subscribe to download
Ingame Rules List

Description
Note: The displayed images are a customized version for Catalyst Gaming. This version only includes the Rules List tab. If theres enough want I may upload the version with both tabs.

Note 2: The displayed setup includes a basic redirector that displays the length of the window being up and a message saying the admin is forcing the rules. This is NOT included and will NOT be released.

This is an ingame rules list for your server.

Commands to add to a server config file:
sv_rules "http://www.path.to/rules.html" - This is the full URL path to your rules file.
sv_rule_duration 10 - This is the duration you want your rules to be open for before the player can close them.
sv_sname "Server Name" - This is what displays at the top of the rule window.

The Ingame Rules List is bound to a client command of "GetRules". You can force this on a player using lua.

Planned features:
- Add an administration command to force on a player.
5 Comments
Jeh0va 29 Nov, 2014 @ 2:32am 
how do i change rules
Λrrick 20 Mar, 2014 @ 10:11pm 
how do I make it show up for people automatically when they join? right now it only shows up if I run "getrules" on them
mp 9 Feb, 2014 @ 7:04pm 
Keeps having google show up, my server name isn't displayed, and it takes longer than it is set to close out. Copied settings from here into my server.cfg and no luck.
Scruffygamer (SFM COMMISSIONS) 20 Apr, 2013 @ 3:25pm 
how do you add more rules?
Karma  [author] 17 Apr, 2013 @ 6:42pm 
For those wondering how to make it autorun on a user on initial connect, create a new .lua file in the /lua/autorun/server/ folder (name it anything) and include this bit of code:

function DisplayRules(ply)
ply:ConCommand("GetRules")
end
hook.Add("PlayerInitialSpawn","ShowRules",DisplayRules)