July 19, 2018, 11:16:25 PM

Author Topic: [Tutorial] Adding WCS admins to your server  (Read 484 times)

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1039
  • Country: dk
  • Content creator for the new WCS version by Kami.
[Tutorial] Adding WCS admins to your server
« on: January 28, 2018, 11:09:56 PM »
Making someone a WCS admin


Hi everyone!
In this tutorial I will explain how to add someone as a WCS admin to your server. By the end of this tutorial you will be able to:
- Find people's steamID and SteamID3
- Add multiple WCS admins for both CS:S and CS:GO
- Configure your WCS admin's access




Where to set the WCS admin
In order to add someone to your list over people who have access to the wcsadmin chat command you will have to add them to a list and configure their permissions.
The list along with configurations can be found inside of the admins.ini file which can be found here: addons/source-python/plugins/wcs/admins/admins.ini

Open up your admins.ini file and you will see something looking like this:

Code: [Select]
//CS:GO uses the SteamID
[STEAM_0:0:00000000]
wcsadmin = 1
wcsadmin_settings = 1
wcsadmin_givexp = 1
wcsadmin_givelevels = 1
wcsadmin_changerace = 1
wcsadmin_resetrace = 1
wcsadmin_resetplayer = 1
wcsadmin_bank = 1


//In CS:S you have to use SteamID3
["[U:0:00000000]"]
wcsadmin = 1
wcsadmin_settings = 1
wcsadmin_givexp = 1
wcsadmin_givelevels = 1
wcsadmin_changerace = 1
wcsadmin_resetrace = 1
wcsadmin_resetplayer = 1
wcsadmin_bank = 1


To add yourself as a WCS admin, you will need to change the ID to your own.
Depending on whether it is CS:S or CS:GO you will have to use a different ID, obtaining the right ID will be explained in the next section.





Obtaining the right SteamID / SteamID3
Here are a few very easy steps to get the right SteamID for the person you want to add to the list of WCS admins.

First you go to the steam profile of the person you want to add. In this case I am using my own steam profile.
Once you are at the steam profile you right click, the background and you click the option "Copy page url".



Now you go to this website: https://steamid.io/lookup
Click the search field and paste in the URL you just got from before, then click the "lookup" button.
Now you should be met with a page looking like this:



If you run a CS:GO server read this section
If you are running a CS:GO server with the WCS mod on, then you will have to copy the SteamID you got from the lookup page.



After copying this, go back in to your admins.ini file and replace your "[STEAM_0:0:00000000]" with the SteamID you found.
In my case I would replace it with: "[STEAM_0:0:22596071]"

Without further configurations you can now save the document, and restart the server and you will be a WCS admin on the server.
You can however configure your WCS admin's rights to your liking, I will explain this in depth in the section further below named "Configuring your individual WCS admins permissions"




If you run a CS:S server read this section
If you are running a CS:S server with the WCS mod on, then you will have to copy the SteamID3 you got from the lookup page.



After copying this, go back in to your admins.ini file and replace your ["[U:0:00000000]"] with the SteamID you found.
In my case I would replace it with: ["[U:1:45192142]"]

Without further configurations you can now save the document, and restart the server and you will be a WCS admin on the server.
You can however configure your WCS admin's rights to your liking, I will explain this in depth in the section further below named "Configuring your individual WCS admins permissions"



Configuring your individual WCS admins permissions
Once you have assigned the SteamIDs for the users you wish for to be WCS admins on your server it is time to set up their individual rights.
The permissions are the same for both CS:S and CS:GO.

The way the permission system works is that 1 means the person have access to use the feature, whilst 0 means they do not have the necessary permissions.
Below is the default permission list, I will be going through each permission and explain what they all do, so you can make your configuration fit just your needs.
Code: [Select]
wcsadmin = 1
wcsadmin_settings = 1
wcsadmin_givexp = 1
wcsadmin_givelevels = 1
wcsadmin_changerace = 1
wcsadmin_resetrace = 1
wcsadmin_resetplayer = 1
wcsadmin_bank = 1

wcsadmin = 1
- This means the admin can use the wcsadmin chat and console command.

wcsadmin_settings = 1
- This means the admin can access the settings panel in the wcsadmin menu.

wcsadmin_givexp = 1
- This gives the admin access to the give experience panel in the wcsadmin menu.

wcsadmin_givelevels = 1
- This gives the admin access to the give levels panel in the wcsadmin menu.

wcsadmin_changerace = 1
- This gives the admin the permission to change player's races.

wcsadmin_resetrace = 1
- This gives the admin the permission to reset a player's current race.

wcsadmin_resetplayer = 1
- This gives the admin the permission to reset ALL of a player's races at once.

wcsadmin_bank = 1
- This gives the admin access to the wcs bank menu panel.



Adding multiple WCS admins
If you want to add more than one WCS admin to your server it is fairly easy to do so.
You simply copy the structure and change the ID to the ID of the person who should also have admin rights.


For CS:GO servers the admins.ini should look like this:

Code: [Select]
//CS:GO uses the SteamID
[STEAM_0:0:00000000]
wcsadmin = 1
wcsadmin_settings = 1
wcsadmin_givexp = 1
wcsadmin_givelevels = 1
wcsadmin_changerace = 1
wcsadmin_resetrace = 1
wcsadmin_resetplayer = 1
wcsadmin_bank = 1

[STEAM_0:0:22596071]
wcsadmin = 1
wcsadmin_settings = 1
wcsadmin_givexp = 1
wcsadmin_givelevels = 1
wcsadmin_changerace = 1
wcsadmin_resetrace = 1
wcsadmin_resetplayer = 1
wcsadmin_bank = 1

This will allow our example ID [STEAM_0:0:00000000] and myself [STEAM_0:0:22596071] to be wcs admins on the CS:GO server.
   


For CS:S servers the admins.ini should look like this:
Code: [Select]

//In CS:S you have to use SteamID3
["[U:0:00000000]"]
wcsadmin = 1
wcsadmin_settings = 1
wcsadmin_givexp = 1
wcsadmin_givelevels = 1
wcsadmin_changerace = 1
wcsadmin_resetrace = 1
wcsadmin_resetplayer = 1
wcsadmin_bank = 1

["[U:1:45192142]"]
wcsadmin = 1
wcsadmin_settings = 1
wcsadmin_givexp = 1
wcsadmin_givelevels = 1
wcsadmin_changerace = 1
wcsadmin_resetrace = 1
wcsadmin_resetplayer = 1
wcsadmin_bank = 1
   
This will allow our example ID [STEAM_0:0:00000000] and myself [STEAM_0:0:22596071] to be wcs admins on the CS:S server.


Now you know all you need to know in order to set up your own WCS admin list, and make it just like you want it to be.
« Last Edit: January 30, 2018, 12:02:59 PM by Manifest »
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1855
  • Country: be
    • Fortitude
Re: [Tutorial] Adding WCS admins to your server
« Reply #1 on: January 29, 2018, 10:44:28 PM »
Hats down to Manifest.
Anyways why you all code so late? Or early? Don't you guys sleep at all?
Sleep? What's that? Just put a wire up your arse and charge while you code during the night. Doesn't all do that, or is it just me??

Offline WCS - Wookie

  • Level 5 Trained Intermediate
  • *****
  • Posts: 112
  • Country: nz
  • Qualified Teacher, working in IT and loving WCS.
Re: [Tutorial] Adding WCS admins to your server
« Reply #2 on: January 30, 2018, 02:27:17 AM »
Hi Manifest,

Great guide/tutorial! Thank you very much for taking the time out of your day to do this. It will be very helpful for those of us who are unsure as to how to add admins, or those who haven't kept up with the minor changes to the mod over the years.
« Last Edit: January 30, 2018, 12:10:46 PM by WCS - Wookie »
If you like WCS and are from AUS/NZ drop by our server to take a look.


Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1039
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Tutorial] Adding WCS admins to your server
« Reply #3 on: January 30, 2018, 12:06:23 PM »
Thank you very much for your feedback Wookie :-)

No, my first language is not English, and this is by no means grammatically flawless either and it have a lot of punctuation and comma errors as well. However I just wanted to provide a detailed guide with illustrations for people so that we wont have to explain the same things over and over to the people who will be asking about WCS admin later down the line.
Now we can instead simply refer to this tutorial and everything should be detailed to a point where there will be no misunderstandings unlike the previous guides for the older versions. :-)

Thank you for your input on the configurate versus configure, as I am sure this will also make the guide easier to read and understand for people of the native language, which is of course also one of the priorities. :-)
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Canoside

  • Level 0 Beginner
  • Posts: 2
Re: [Tutorial] Adding WCS admins to your server
« Reply #4 on: July 10, 2018, 08:58:32 AM »
I think these things can be considered as good information for me, which is looking for.