CS2 K4-System
With our K4 System Interface, you can display a user-friendly interface for your players to see their ranks and much more.
How to Set up the K4 System
- Input your Steam API Key in Integrations > Steam.
- Ensure you have the latest version of the GameCMS CS2 Plugin. For more information, visit GameCMS CS2 Plugin Documentation.
- Sync your ranks with the database. It's recommended to do this whenever
ranks.jsonc
changes. This helps in providing accurate user ranks and performance data. - To sync the server ranks, you have to run css_gcms_k4syncranks. It can be run by anyone with the flag **css/root **.
- Add the K4 System interface from Integrations > Counter Strike 2 > Plugins.
- Click on Add New Plugin to access the integration settings for the K4 System.
Integration Settings
Configure the following base settings for the K4 System plugin interface on your website:
- Activation: Should this interface be enabled on your website?
- Use Global MySQL Server: By default, it's set to yes. If you select no, you will need to select a MySQL server. The Global MySQL Server is configured from Integrations > Counter-Strike 2.
- Table Prefix: If your K4 system has a prefix, you will need to enter it here.
- Name in the Website Menu: Use this to distinguish the K4 System in your website's menu when you have more than one plugin added.
- Link to the Page: Provide a unique link for the K4 System plugin interface when you have more than one plugin added.
Plugin Settings
Adjust these settings specific to the K4 System plugin:
- Limit First Top: Set the number of top users to display, minimum 1.
- Select CS2 Server: Choose the CS2 server to which this K4 System interface will be connected.
Faceit Level Integration
We've added an option to include Faceit player information on your website. To set this up, you will need to generate a
server-side API key from developers.faceit.com. Once obtained, open
the GameCMSPlugin.json
configuration file and insert a new field with your token:
{
"FaceitToken": "your_generated_token"
}
Ranks Images
To display rank images on your website, you must configure them in your ranks.jsonc file. Here's an example configuration:
"Global Elite": {
"Name": "Global Elite",
"Tag": "[GE]",
"Point": 9300,
"Color": "lightred",
"Image": "imgur.com/1G3x6fe.png" <-- add "Image" key with the value. The key must be "Image" key sensitive.
}
The key must be Image key sensitive. The image must contain only the path name without any https:// or http:// at the beginning, just as the example.