Prerequisites
- Notepad++ (much easier with it tbh)
- CS2 installed (obvious)
- SteamCMD or server setup (if not, view step 2)
- GSLT Token (Steam account with $5> spending)
Step 1: Install & Setup MySQL
1. Download MySQL:
o Go to the MySQL Downloads page.
o Choose the appropriate installer for your operating system (Windows, macOS, or Linux).
2. Install MySQL:
o Run the installer you downloaded.
o Follow the installation steps. You can typically use the default settings, but make sure to
note any important details, like the root password you set during the installation.
Windows:
o Open the MySQL Workbench or the MySQL Command Line Client.
o If you’re using the MySQL Workbench, you can start the server from there. If using the
Command Line Client, it should start automatically
Open the MySQL Command Line Client:
o You can do this from the Start menu on Windows or through the terminal on macOS and
Linux by typing:
mysql -u root -p
o Enter the root password you set during installation when prompted.
Create Database:
o Once logged in, create a new database by typing:
CREATE DATABASE mydatabase;
o You can name mydatabase anything you like.
o Name it something related to counterstrike for easy life in future?
Use the Database:
o Select the new database for use:
USE mydatabase;
Create a User:
o Create a new user with a username and password. Replace username and password with
your desired values:
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
Grant Permissions:
o Grant all permissions on your new database to the new user:
GRANT ALL PRIVILEGES ON mydatabase.* TO 'username'@'localhost';
o Apply the changes:
FLUSH PRIVILEGES;
Log Out:
o Exit the MySQL Command Line Client:
EXIT;
Log In with New User:
o Log back in using the new user credentials:
mysql -u username -p
o Enter the password for the new user when prompted.
Verify Access:
o Use the new database:
USE mydatabase;
o Create a test table to ensure you have the proper permissions:
CREATE TABLE test (id INT PRIMARY KEY);
Login Information:
o The credentials for your new MySQL user are:
▪ Username: username
▪ Password: password
▪ Host: localhost
▪ Database: mydatabase
Step 2: Create a server so you can use plugin in it.
You can follow any guide to create a server.
Requirements:
- GSLT Token
- Some knowledge about command prompt and handling file locations
This can be done both on Windows & Linux
Once the server is up, make sure port forwarding is enabled so your friends and other people can join with
the following command:
You can use steamcmd method or use the dedicated launcher cmd file to launch server. I use the later. Its
easy and I don’t have to manage 2 installs. Steamcmd is better if you don’t want to go through the hassle
of running the game in insecure mode for your server.
Connect x.x.x.x:port
You can also use zerotier or radminvpn or any other LAN Emulator service. I use RadminVPN due to
double NAT connections here in my country/area.
Step 3 Install CounterStrike Sharp
- Download the runtime build from release
- Unzip the zip file
- Place the counterstrikesharp folder in
\Counter-Strike Global Offensive\game\csgo\addons\
Step 4 Install Metamod
- Download metamod from here
- Place it in \Counter-Strike Global Offensive\game\csgo\addons folder right where you added
counterstrikesharp.
- Inside /game/csgo/, locate gameinfo.gi.
- Create a new line underneath Game_LowViolence csgo_lv and add Game csgo/addons/metamod.
- Your gameinfo.gi file should look like this:
- Restart your game server.
- Run the command “meta list”
- Output should show counterstrikesharp installed.
- If not, make sure you followed the steps properly and didn’t miss anything.
Step 5 Install WeaponPaints
- Download weaponpaints from here
- Unzip and place the plugin inside \Counter-Strike Global
Offensive\game\csgo\addons\counterstrikesharp\plugins
- Run server with plugin, it will generate config if installed correctly!
- Edit addons/counterstrikesharp/configs/plugins/WeaponPaints/WeaponPaints.json include
database credentials
- These credentials are what you created in mysql database in the first steps
- In addons/counterstrikesharp/configs/core.json set FollowCS2ServerGuidelines to false
- Copy weaponpaints.json from gamedata folder of weaponpaints plugin’s extracted zip to
steamapps\common\Counter-Strike Global
Offensive\game\csgo\addons\counterstrikesharp\gamedata
Run your server after it. Use the commands such as !skins and !wp and it should work.