I want to remove, add or edit admins on my CS:GO Server
Example(s)
.
Cause(s)
.
Solution(s)
You can also add Admins through SourceBans which will sync their permissions from there. All admins must have SourceBans setup so they are able to add, edit, remove and add demos to their bans on the website! Anything written in the server admins.cfg file will overwrite the permissions granted in SourceBans!
How to add admin on SourceBans
Go to https://sourcebans.gflclan.com and login, once logged in click on "Admin Panel" and then click on "Admin Settings":
Then you will be redirected to a page where you can see all existing admins with a search menu, you can edit existing admins by searching for their name and clicking on their name afterwards. To add new admins, click on "Add New Admin" on the sidebar:
Then fill in the required information such as Steam ID, login, Email and more. Hover over the ? icon for more information
Once you have setup all the information, scroll down and tick the server where you want to grant the permission for the new admin. Then scroll to the bottom to select the Admin permission group, such as Admin and Web ServerAdmin. Once you are sure that all information is correct, click on "Add Admin". Your new admin will then be able to login to SourceBans and edit, add, remove bans created by him together with his permission being synced with the server that you granted him the permissions at (requires map change or console command sm_reloadadmins).
How to add admin using server file
Open your FTP client and connect to the server that you wish to edit the admins on. If you don't know how to use the FTP client, then please read this article.
Head over to /csgo/addons/sourcemod/configs
The file that you are looking for is called admins.cfg, open it to edit the file. It should look something like this:
Admins
{
"Admin Name1"
{
"auth" "steam"
"identity" "STEAM_1:1:123456789"
"flags" "z"
"immunity" "99"
}
"VirusKing"
{
"auth" "steam"
"identity" "STEAM_1:0:56560580"
"flags" "abcdefjk"
"immunity" "80"
}
"Admin Name2"
{
"auth" "steam"
"identity" "STEAM_1:1:123456789"
"group" "Admin"
}
All CS:GO servers have Groups permissions setup (admin_groups.cfg file), so you can simply use groups such as Admin or Operator to add new admins like in the most bottom example of Admin Name2. If you wish to add each flag (permission) manually, then you can do this the same way Admin Name1 and VirusKing is setup by adding each flag to the "flags" line. Be careful when manually adding flags to users, because you don't want to give too much power to anyone as they can break the server.
Let's breakdown the setup with flags:
"VirusKing" <---- The name of the person, this allows you to know who you gave it to
{
"auth" "steam" <-- Authentication type, leave it to "steam"
"identity" "STEAM_1:0:56560580" <--- Steam ID of the user, you can find the steam ID using website such as https://steamid.io/
"flags" "abcdefjk" <--- Flag permissions of the user, you can read about all the admin flags by clicking here (custom flags are reserved for member/supporter/VIP on GFL, do not use them)
"immunity" "80" <-- Immunity level, this prevents lower level immunity groups such as Operator from muting/banning higher immunity level groups such as Admin
}
Let's breakdown the setup with groups:
"Admin Name2" <---- The name of the person, this allows you to know who you gave it to
{
"auth" "steam" <-- Authentication type, leave it to "steam"
"identity" "STEAM_1:1:123456789" <--- Steam ID of the user, you can find the steam ID using website such as https://steamid.io/
"group" "Admin" <-- User group, available ones are Admin, Operator and they are case sensitive
}
If you have any questions, then please contact your Division Leader!
Additional Information
Remember to make sure that the edited file has been uploaded to the server, otherwise it will not take effect! Once the permissions have been changed, you must wait until map changes for new permissions to take effect when the file is loaded again or you can force reload the file by using admin menu > Server > Reload Admins or console command sm_reloadadmins
Make sure to read the SourceMod documentation for admin types to be aware on how they work: https://wiki.alliedmods.net/Adding_Admins_(SourceMod)
Edited by VirusKing
Fixed code tag being broken inside the spoiler tag

Recommended Comments
There are no comments to display.