|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
// // 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:abcdefgh" //Immunity is 83, flags are abcdefgh // "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" //generic, kick, unban 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, generic, kick // //////////////////////////////// "STEAM_0:0:27912157" "99:z" // Jan |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 |
"Admins"
{
"jan"
{
"auth" "steam"
"identity" "STEAM_0:0:27912157"
"flags" "z"
"immunity" "99"
}
}
|
.
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
/**
* USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
*
* Each admin should have its own "Admin" section, followed by a name.
* The name does not have to be unique.
*
* Available properties: (Anything else is filtered as custom)
* "auth" - REQUIRED - Auth method to use. Built-in methods are:
* "steam" - Steam based authentication
* "name" - Name based authentication
* "ip" - IP based authentication
* Anything else is treated as custom.
* Note: Only one auth method is allowed per entry.
*
* "identity" - REQUIRED - Identification string, for example, a steamid or name.
* Note: Only one identity is allowed per entry.
*
* "password" - Optional password to require.
* "group" - Adds one group to the user's group table.
* "flags" - Adds one or more flags to the user's permissions.
* "immunity" - Sets the user's immunity level (0 = no immunity).
* Immunity can be any value. Admins with higher
* values cannot be targetted. See sm_immunity_mode
* to tweak the rules. Default value is 0.
*
* Example:
"BAILOPAN"
{
"auth" "steam"
"identity" "STEAM_0:1:16"
"flags" "abcdef"
}
*
*/
"Admins"
{
"Admin 1"
{
"auth" "steam"
"identity" "STEAM_X:X:XXXXXXXX"
"flags" "z"
"immunity" "100"
}
"Admin 2"
{
"auth" "steam"
"identity" "STEAM_X:X:XXXXXXXX"
"flags" "z"
"immunity" "100"
}
}
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
// // 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:abcdefgh" //Immunity is 83, flags are abcdefgh // "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" //generic, kick, unban 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, generic, kick // //////////////////////////////// "STEAM_X:X:XXXXXXX" "z" //Admin 1 "STEAM_X:X:XXXXXXX" "z" //Admin 2 |
Zitat von »"wiskyjim"«
Den Unterschied beider Datei habe ich auch nie verstanden.