Skip to Content
Game plugins

Counter-Strike 2

The GameLink plugin for CS2: install it on CounterStrikeSharp, SwiftlyS2 or Metamod, connect it to the site, deliver purchases, bans, stats and the in-game menu.

Your CS2 server is integrated with the site through the FluteCS2Connect plugin, which keeps the server and the site in sync. Perks bought on the site reach the player and bans issued on the site take effect on the server. Players get the site menu in game, and the site receives who is online, stats and reports.

PlatformArchiveSetup command
CounterStrikeSharpflute-cs2-css-<VERSION>.zipcss_flute_setup
SwiftlyS2flute-cs2-swiftly-<VERSION>.zipsw_flute_setup
Metamod:Source, Linuxflute-cs2-metamod-linux-<VERSION>.zipmm_flute_setup
Metamod:Source, Windowsflute-cs2-metamod-windows-<VERSION>.zipmm_flute_setup

The archives are in the flute-cs2 releases. The version in the file name has no leading v: flute-cs2-css-1.0.0.zip. Install one build, for the platform your server already runs.

What you get

Account linking, signing in from the game, the balance, the site menu and the list of players online work on the engine alone, with no modules. Everything else needs a site module:

What the plugin doesSite module
Grants groups, VIP, admin rights and in-game currency after a purchaseGiveCore, Rewards, Shop
Applies bans, mutes and gags from the site and reports the ones issued in gameSentinel
Sends kills, rounds, matches and player numbersStats
Takes !report complaints with the score and the last chat linesReports
Keeps out players who are not on the site whitelistWhitelist
Shows servers and players on public pagesMonitoring
Reloads a player's skins with a console command, when allow_raw_commands is onSkinchanger

Demos are recorded by a separate plugin from the same release and need the Demos module on the site.

Requirements

PlatformVersion
CounterStrikeSharp1.0.369 or newer (.NET 10)
SwiftlyS21.4.9 or newer
Metamod:Source2.0 with KHook, build 2.0.0-git1460 or newer. Plus cs2-menus (utils) by Pisex, built for the same Metamod

On Metamod the plugin will not start without utils: it takes chat, commands, events and menus from there.

The plugin needs neither RCON nor open ports: it calls the site over HTTPS on its own.

Install the plugin

Unpack the archive into game/csgo/, keeping its folders, and restart the server. The archive ships no settings; config.json appears on the first start.

game/csgo/addons/counterstrikesharp/
├── plugins/FluteCS2Connect/
├── shared/FluteConnect.Api/
└── configs/plugins/FluteCS2Connect/config.json   ← after the first start

The server must already be added in the admin panel, as described in Connect a game server.

Issue a token

Open AdminServers, then your server and its "Plugins" tab. Expand "How to install GameLink" and click "Issue token". A window opens with the command ready, the flute_srv_… token already in it.

Run the command in the server console

css_flute_setup "https://<YOUR_DOMAIN>" <SERVER_TOKEN>

On SwiftlyS2 the command is sw_flute_setup, on Metamod mm_flute_setup. It runs only in the server console or over RCON. From the game you get [Flute] css_flute_setup runs only in the server console.

Check the connection

A few seconds later the console prints:

Connected to https://<YOUR_DOMAIN> (server #3)

The status on the "Plugins" tab turns to "Connected". Under "For power users: security, command queue, in-game menu" → "What the plugin reports" you see the plugin version, the player count and the actions it can perform.

css_flute_status (sw_flute_status, mm_flute_status) shows the link state at any time. The Extensions line lists the plugin modules that declared actions: Sanctions and Privileges. Stats and Reports only send events, so they are not listed there.

Linking accounts

Players are identified by SteamID. For site purchases to find a player on the server, they link the accounts: on the site they open Profile → Settings → Linked accounts → "Get code", type !link CODE in game chat and confirm the link on the site.

!balance shows the site balance. !login gives a one-time sign-in link for the site, but only when "Allow signing in from the game" is on under "Security" on the "Plugins" tab. The switch is off by default, and administrators and moderators never get such a link.

Stats

The stats module sends the site kills (who, with whose help, with what, headshot or not), round ends, match start and end, and player numbers: shots, hits, damage, MVPs, bombs. It stays silent during warmup and ignores bots. The site stores this in the Stats module. The player and match score in every sync is sent even without that module.

Bans and mutes

The sanctions module carries out bans, gags and mutes from the site and reports punishments issued in game to the site, along with who issued them. When the server has an admin plugin, the punishment goes through it:

Admin pluginPlatform
CS2-SimpleAdmin, IKS AdminCounterStrikeSharp
Admins (SwiftlyS2-Plugins)SwiftlyS2
AdminSystem by PisexMetamod

Without one, the plugin keeps its own list in sanctions.json: a banned player is kicked on every join, a gag silences chat, a mute silences voice. The site needs the Sentinel module.

Store and delivery

The privileges module grants and removes groups, reloads VIP and admins, and adds or takes in-game currency. The group prefix decides where it goes: vip:gold goes to the VIP plugin, admin:moder to the admin plugin, a group without a prefix is granted by the platform itself. Supported: VIP-Core, Shop-Core and Levels Ranks on CounterStrikeSharp, VIP, Admins and Shop from SwiftlyS2-Plugins, and the Pisex plugins on Metamod.

A purchase for a player who is offline waits until they join. When the server has no VIP plugin or store for that group, the site gets unsupported_action back and knows the purchase was not delivered. How each command went is shown under "Command queue" on the "Plugins" tab, and everything the site sends to servers is listed in Sent to servers.

The site cannot grant a group with @css/root, @css/rcon or * until allow_privileged_groups is switched on in the privileges section.

In-game menu

!menu opens the site menu in the centre of the screen, !settings the settings page. W and S move the cursor, E selects, A goes back, R closes. On Metamod cs2-menus already owns !menu and !settings, so use !flute, /menu and /settings there.

Site modules add the menu sections: store, servers, skins. Order and contents are set in AdminServersIn-game menu (In-game menu).

Monitoring

Every sync carries the map, the players with their score, ping and team, and the current match with the CT and T score. The site shows it on the server page in the admin panel, and the Monitoring module puts it on public pages.

Demos

GOTV demo recording is a separate archive of the same release: flute-cs2-demos-css-<VERSION>.zip, flute-cs2-demos-swiftly-<VERSION>.zip, flute-cs2-demos-metamod-linux-<VERSION>.zip or flute-cs2-demos-metamod-windows-<VERSION>.zip. Its config takes two values:

addons/counterstrikesharp/configs/plugins/Demos/Demos.json
{
  "site": "https://<YOUR_DOMAIN>/api/v1/demos/upload",
  "token": "<SERVER_TOKEN>"
}

The token is the same as for GameLink. On SwiftlyS2 the file is addons/swiftlys2/configs/plugins/Demos/config.json, on Metamod it is addons/configs/demos.ini. Recording starts with the next round, and at the end of the match or on a map change the demo goes to the site. What the site does with it is on the Demos page.

Plugin commands and permissions

CommandWho can run itWhat it does
css_flute_setup <url> <token>server console, RCONconnects the server to the site and saves url and token to config.json
css_flute_statusconsole, a player with admin_permissionlink state, last error, queue
css_flute_reloadconsole, a player with admin_permissionrereads config.json
!link CODEplayerlinks the account to the site
!balanceplayersite balance
!loginplayerone-time sign-in link for the site
!menu, !settingsplayersite menu and settings page
!reportplayera report: pick the player, then the reason

On SwiftlyS2 console commands start with sw_, on Metamod with mm_. admin_permission defaults to @css/root, on Metamod to @admin/root from AdminSystem. A player can report the same player once per 5 minutes and send at most three reports per 10 minutes.

Plugin config

PlatformFile
CounterStrikeSharpaddons/counterstrikesharp/configs/plugins/FluteCS2Connect/config.json
SwiftlyS2addons/swiftlys2/configs/plugins/FluteCS2Connect/config.json
Metamodaddons/configs/FluteCS2Connect/config.json

The setup command writes url and token; set them by hand only when you have no console access. After editing, run css_flute_reload. The file holds the token, so the plugin sets its permissions to 600.

config.json
{
  "url": "https://<YOUR_DOMAIN>",
  "token": "<SERVER_TOKEN>",
  "language": "en",
  "allow_raw_commands": false,
  "events": ["player.join", "player.quit", "map.start"],
  "stats": { "enabled": true },
  "sanctions": { "enabled": true },
  "reports": { "enabled": true, "command": "report" },
  "privileges": { "enabled": true }
}
ParameterDefaultWhat it changes
languageenlanguage of chat messages and the site menu: en, ru or uk
chat_prefix{green}[Flute]{default}prefix of the plugin's chat messages
allow_raw_commandsfalselets the site run console commands. Skinchanger and "Send a command" in the admin panel need it
command_blacklistrcon_password, quit, exec, alias, sv_cheats and morecommands the site will never run
allow_insecure_httpfalseallows an http:// site address, only when the site runs on the same machine
eventsplayer.join, player.quit, map.startevents sent to the site. chat.message forwards chat
menu_rendererautoCounterStrikeSharp only: chat shows the menu as a list in chat
commandslink, balance, login, menu, settingsnames of player commands
admin_permission@css/rootplayer permission for flute_status and flute_reload
sync_interval_seconds10pause between syncs until the site sets its own (3 to 120 seconds)
debugfalselogs every command it runs

A module is switched off with "enabled": false in its section. css_flute_reload is not enough for that: restart the server or reload the plugin. To the site a switched-off module looks like one that is not installed, and the site does not offer its actions.

Troubleshooting

For any other message, use the error lookup.

css_flute_status shows the last error on the Last error line.

MessageWhat to do
Site: not configured — flute_setup <url> <token>the plugin is not connected yet: run the setup command
The token must start with flute_srv_the wrong token went into the command. Copy the whole command from the "Issue token" window
the site does not know this server's key — reset the token in the admin panel and run flute_setup againthe token was revoked or replaced. Click "Issue a new one" and run the command again
signature rejected — check the server clock (±60 s)the game server clock is more than a minute off the site clock. Turn on time sync
bad_response: the site did not answer with JSON — does the URL point at Flute?the address does not lead to the site, or a proxy page is in the way. Use the site root without /api
network_error, timeoutthe server cannot reach the site. The plugin retries with a pause of up to max_backoff_seconds
too_many_requestsseveral servers share one token. Issue one per server
http:// is refusedthe site address starts with http://. Use https://

Token issued, but the plugin has not called in yet

The site has not had a single request from the plugin. Check that the server was restarted after unpacking, the setup command was run in the console, and css_flute_status shows none of the errors above.

Purchase not delivered: unsupported_action

The server has no plugin that owns the group or currency. If the VIP plugin is installed but was not detected, force it on: "integrations": {"vipcore": "on"} in the privileges section.

Reference

Next

On this page