DocumentationAdding Admins
Quote:
Passwords
For passwords to work, the server administrator must change the "PassInfoVar" line in addons/sourcemod/configs/core.cfg.
|
Code:
/**
* Password setinfo key that clients must set. You must change this in order for
* passwords to work, for security reasons.
*/
"PassInfoVar" "_password"
Code:
"PassInfoVar" "_sm1337"
addons/sourcemod/configs/admins.cfg
Code:
/**
* 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
{
"BAILOPAN"
{
"auth" "name"
"identity" "BAILOPAN"
"password" "Gab3n"
"flags" "abcdef"
"immunity" "1"
}
"Some admin"
{
"auth" "steam"
"identity" "STEAM_0:1:17"
"flags" "z"
"immunity" "99"
}
}
Quote:
Next, if an admin has a password, he or she must set the password via the setinfo command in the client console. For example, using the examples above, BAILOPAN would need to type:
|
Name based authentication with password, kick player with that name if not have add password.
For steam and IP authentication, can connect normal to server.
But admin privileges will be behind password.