Adding Admins

From SOPWiki

Revision as of 04:26, 11 September 2007 by Drunken F00l (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

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.


If you pick the SteamID, name, or IP address choice, make sure to enter the respective info in the box below.


Then, you can check whether or not you want the admin to have a password and if so, enter the password.


Now, pick the commands that you want the user to have access to. For an easy way to give full access, just click the Image:DFAdminsCheckAll.gif button.


After you pick the commands, copy and paste the text from the right side of the program into your DF_admins.txt file.
Personal tools