added admin "simple file" parsing

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40643
This commit is contained in:
David Anderson
2007-03-16 22:15:03 +00:00
parent 62bd9ee7f8
commit cbf1bbec0f
6 changed files with 181 additions and 42 deletions
+5
View File
@@ -7,6 +7,11 @@ Groups
* "immunity" - Specifies a group to be immune to. Use "*" for all or "$" for users with no group.
* This key may be used multiple times.
*/
"Default"
{
"immunity" "$"
}
"Full Admins"
{
/**
+36 -39
View File
@@ -1,41 +1,38 @@
/***************************************
* READ THIS CAREFULLY! SEE BOTTOM FOR EXAMPLES
*
* For each admin, you need two settings:
* "identity" "permissions" "password"
*
* For the Identity, you can use a SteamID, IP address, or Name (the type will be auto-detected).
* For the Permissions, you can use a flag string or group (read below), and an optional password.
*
* There are 13 flags (a-i,z), and each flag has a specific meaning/role.
* For example, the "b" flag means "kick permissions."
*
* You can combine flags into a string like this:
* "abcdefgh"
*
* The default flags are:
*
* "reservation" "a" //Slot reservation
"kick" "b" //Kick other players
"ban" "c" //Ban other players
"unban" "d" //Unban other players
"slay" "e" //Slay other players
"changemap" "f" //Change the map or gameplay type
"cvars" "g" //Change cvars
"configs" "h" //Run config files
"chat" "i" //See dead/team chat and chat with other admins
"votes" "j" //Display votes
"password" "h" //Change server password
"rcon" "i" //Use RCON
"root" "z" //All permissions
*
*
* Examples:
* "STEAM_0:1:16" "bce" //kick, ban, slay for this steam ID
* "127.0.0.1" "z" //all permissions for this ip
* "BAILOPAN" "abc" "Gab3n" //name BAILOPAN, password "Gab3n": gets reservation, kick, ban
*
***************************************/
//
// READ THIS CAREFULLY! SEE BOTTOM FOR EXAMPLES
//
// For each admin, you need three settings:
// "identity" "permissions" "password"
//
// For the Identity, you can use a SteamID or Name. To use an IP address, prepend a ! character.
// For the Permissions, you can use a flag string and an optional password.
//
// PERMISSIONS:
// Flag definitions are in "admin_levels.cfg"
// You can combine flags into a string like this:
// "abcdefgh"
// There is also one additional "magic" flag, $, which gives admins default immunity.
//
// If you want to specify a group instead of a flag, use an @ symbol. Example:
// "@Full Admins"
//
// PASSWORDS:
// Passwords are generally not needed unless you have name-based authentication.
// In this case, admins must type this in their console:
//
// setinfo "KEY" "PASSWORD"
//
// Where KEY is the "pw_auth" setting in your sourcemod.cfg file, and "PASSWORD"
// is their password. This must be done before the authentication matches on the
// server.
//
////////////////////////////////
// Examples:
// "STEAM_0:1:16" "bce" //kick, ban, slay for this steam ID
// "127.0.0.1" "z" //all permissions for this ip
// "BAILOPAN" "abc" "Gab3n" //name BAILOPAN, password "Gab3n": gets reservation, kick, ban
//
////////////////////////////////
"127.0.0.1" "z"
"!127.0.0.1" "$z"
+2 -2
View File
@@ -1,12 +1,12 @@
/**
* Each sub-section of "Plugins" should have a title which specifies a plugin filename.
* Filenames have a wildcard of *. Appending .amxx is not required.
* Filenames have a wildcard of *. Appending .smx is not required.
* If the filename has no explicit path, it will be patched to any sub-path in the plugins folder.
*
* Available properties for plugins are:
* "pause" - Whether or not the plugin should load paused - "yes" or "no" (defualt)
* "lifetime" - Lifetime of the plugin. Options:
* "private" - Plugin is privately maintained and receives no forwards from Core
* "private" - Plugin is privately maintained and receives no forwards from Core
* "mapsync" - Plugins should be reloaded on mapchange if changed (default)
* "maponly" - Plugin should be unloaded at the end of the map
* "global" - Plugin will never be unloaded or updated