Adding Admins
From SOPWiki
Revision as of 04:24, 11 September 2007 (edit) Drunken F00l (Talk | contribs) (→Adding an Admin Using the DF_admins.txt Helper Program - Added images) ← Previous diff |
Current revision (04:26, 11 September 2007) (edit) (undo) Drunken F00l (Talk | contribs) m (→Adding an Admin Using the DF_admins.txt Helper Program - Gramatical fixes) |
||
Line 44: | Line 44: | ||
[[Image:DFAdminsHelper1.gif|left]] | [[Image:DFAdminsHelper1.gif|left]] | ||
- | When you run it, at the top left you can pick if you want to add an admin by SteamID, name, IP address, or edit the default user. | + | When you run it, at the top left you can pick whether you want to add an admin by SteamID, name, IP address, or edit the default user. |
Line 50: | Line 50: | ||
- | [[Image:DFAdminsHelper3.gif|left]]Then, you can check whether or not you want the admin to have a password and enter the password. | + | [[Image:DFAdminsHelper3.gif|left]]Then, you can check whether or not you want the admin to have a password and if so, enter the password. |
Current revision
All admins are controlled by the DF_admins.txt file. This file can be found in the {gamedir}\addons\SourceOP folder. All lines in this file that begin with //
are ignored by SourceOP when parsing the file and are just used for commentary purposes.
Contents |
[edit] Adding an Admin by SteamID
At the end of the DF_admins file.txt, on a new line add "SteamID:STEAM_ID_GOES_HERE"
(with quotes). Replace STEAM_ID_GOES_HERE
with the actual SteamID of the admin. Then, on a new line below that, add the {
character. Next, add any directives for the admin. For example, to give the admin full access, simply put baseLevel = 131071
on a new line below the '{'. You can deny access to specific commands by writing denyAdminCmd =
and then the users name for the specific command. After you have added all directives for the admin, close it off by adding a }
character on a new line below all directives.
[edit] Examples
Admin with SteamID STEAM_0:1:5637637 with full access.
"SteamID:STEAM_0:1:5637637" { baseLevel = 131071 }
Admin with SteamID STEAM_0:1:5637637 with full access. This admin must login with the password mypass
before being allowed access to any commands.
"SteamID:STEAM_0:1:5637637" { baseLevel = 131071 password = mypass }
Admin with SteamID STEAM_0:1:5637637 with access to all commands except for the admin_ban command.
"SteamID:STEAM_0:1:5637637" { baseLevel = 131071 denyAdminCmd = ban }
[edit] Adding an Admin by Name
[edit] Adding an Admin by IP
[edit] Adding an Admin Using the DF_admins.txt Helper Program
First, download the DF_admins.txt Helper Program here. Install it and then run it.
When you run it, at the top left you can pick whether you want to add an admin by SteamID, name, IP address, or edit the default user.