Yeah that's what I'm wanting to do, what I've set-up so far is three custom flags but I want to add more privileges and so expand my override groups. I'm thinking of having maybe six or seven VIP groups of privileges and ten Admin groups, but using a custom flag for each will mean I'll run out of letters to use. Is there a way of using admin_groups.cfg to use just a few custom flags and use the "allow" function to add one or two more abilities. From what I can work out from the documentation each group is for a single SteamID, can multiple SteamIDs be added to one group?
Here's what I've done so far, but it would be good to use one flag for VIPs & one for Admins and just add more abilities with the "allow" function:
Code:
Overrides
{
/**
* By default, commands are registered with three pieces of information:
* 1)Command Name (for example, "csdm_enable")
* 2)Command Group Name (for example, "CSDM")
* 3)Command Level (for example, "changemap")
*
* You can override the default flags assigned to individual commands or command groups in this way.
* To override a group, use the "@" character before the name. Example:
* Examples:
* "@CSDM" "b" // Override the CSDM group to 'b' flag
* "csdm_enable" "bgi" // Override the csdm_enable command to 'bgi' flags
*
* Note that for overrides, order is important. In the above example, csdm_enable overwrites
* any setting that csdm_enable previously had.
*
* You can make a command completely public by using an empty flag string.
*/
}
V Flag
{
"sm_showrules_showtoadmins" "bv" //Change "sm_showrules_showtoadmins" to the "v" flag as well.
"sm_adminsimmune" "bv" //Change "sm_adminsimmune" to the "v" flag as well.
"sm_psay" "jv" //Change "sm_psay" to the "v" flag as well.
}
W Flag
{
"sm_showrules_showtoadmins" "bw" //Change "sm_showrules_showtoadmins" to the "w" flag as well.
"sm_adminsimmune" "bw" //Change "sm_adminsimmune" to the "w" flag as well.
"sm_psay" "jw" //Change "sm_psay" to the "w" flag as well.
"sm_votemute" "bw" //Change "sm_votemute" to the "w" flag as well.
"sm_votesilence" "bw" //Change "sm_votesilence" to the "w" flag as well.
}
X Flag
{
"sm_showrules_showtoadmins" "bx" //Change "sm_showrules_showtoadmins" to the "x" flag as well.
"sm_adminsimmune" "bx" //Change "sm_adminsimmune" to the "x" flag as well.
"sm_psay" "jx" //Change "sm_psay" to the "x" flag as well.
"sm_votemute" "bx" //Change "sm_votemute" to the "x" flag as well.
"sm_votesilence" "bx" //Change "sm_votesilence" to the "x" flag as well.
"sm_votekick" "kx" //Change "sm_votekick" to the "x" flag as well.
"sm_voteban" "kx" //Change "sm_voteban" to the "x" flag as well.
}
Code:
//
// 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"
//
// If you want to specify a group instead of a flag, use an @ symbol. Example:
// "@Full Admins"
//
// You can also specify immunity values. Two examples:
// "83:abcdefg" //Immunity is 83, flags are abcefgh
// "6:@Full Admins" //Immunity is 6, group is "Full Admins"
//
// Immunity values can be any number. An admin cannot target an admin with
// a higher access value (see sm_immunity_mode to tweak the rules). Default
// immunity value is 0 (no immunity).
//
// 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 "PassInfoVar" setting in your core.cfg file, and "PASSWORD"
// is their password. With name based authentication, this must be done before
// changing names or connecting. Otherwise, SourceMod will automatically detect
// the password being set.
//
////////////////////////////////
// Examples: (do not put // in front of real lines, as // means 'comment')
//
// "STEAM_0:1:16" "bce" //kick, ban, slay for this steam ID, no immunity
// "!127.0.0.1" "99:z" //all permissions for this ip, immunity value is 99
// "BAILOPAN" "abc" "Gab3n" //name BAILOPAN, password "Gab3n": gets reservation, kick, ban
//
////////////////////////////////
"STEAM_0:0:00000" "100:z" // Root Admin
"STEAM_0:0:00000" "1:v" // V.I.P. Basic
"STEAM_0:0:00000" "1:w" // V.I.P. Standard
"STEAM_0:0:00000" "1:x" // V.I.P. Advanced