Source games (SourceMod)
The GameLink plugin for CS:S, TF2, L4D2, CS:GO and other SourceMod games: install, link to the site, commands, config and demo recording.
Your SourceMod server is integrated with the site through the GameLink plugin, which keeps the server and the site in sync. The site receives who is online, the map, reports and stats, and the server picks up purchases and punishments and opens the site menu for players.
| What you install | Archive | Setup command |
|---|---|---|
| GameLink for SourceMod | flute-source-sourcemod-1.0.0.zip | sm_flute_setup |
| SourceTV demo recorder | flute-source-demos-sourcemod-1.0.0.zip | none, the address and token go into a cfg |
The archives are in the flute-source releases. The archive name carries the version without a v, and newer releases have a different number.
Requirements
You need SourceMod 1.11 or 1.12 with Metamod:Source for your game, plus the RIPExt 1.3.x extension, which the plugin uses to call the site over HTTPS, so no open ports or RCON are needed. Demo recording also needs the SteamWorks extension.
The plugin recognises CS:GO, CS:S, TF2, Left 4 Dead, Left 4 Dead 2, DoD:S and HL2DM, and it runs on other SourceMod games too. The admin panel offers the build and a ready command with the token for servers set to CS:S, Team Fortress 2 and Left 4 Dead 2.
For CS:GO the admin panel shows the CS2 builds and command
The game list has CS:GO and CS2 as one entry, "CS 2 / CS:GO", so the "Plugins" tab offers CS2 archives, and the token window shows the css_flute_setup, sw_flute_setup and mm_flute_setup commands. For a CS:GO server on SourceMod, download flute-source-sourcemod from the releases and run sm_flute_setup with the same address and token.
Add DoD:S, HL2DM and Left 4 Dead as "Another game". The token window then shows the token without a ready command, so put it into sm_flute_setup yourself.
Install the plugin
Install RIPExt
Unpack the RIPExt archive into the game folder so that rip.ext.so (rip.ext.dll on Windows) ends up in addons/sourcemod/extensions/.
Unpack GameLink
Unpack flute-source-sourcemod-1.0.0.zip into the game folder: cstrike/ for CS:S, tf/ for TF2, left4dead2/ for L4D2, csgo/ for CS:GO. Restart the server.
<game folder>/
├── addons/sourcemod/
│ ├── extensions/rip.ext.so RIPExt, installed separately
│ ├── plugins/flute_connect.smx
│ ├── configs/flute_connect.cfg commands, integrations, reports
│ ├── translations/flute_connect.phrases.txt
│ └── scripting/ sources and include/flute_connect.inc
└── cfg/sourcemod/flute_connect.cfg site address, token, switchesSourceMod creates cfg/sourcemod/flute_connect.cfg itself the first time the plugin runs. There are two files called flute_connect.cfg and they hold different things: the one in cfg/sourcemod/ has the address, token and switches, the one in addons/sourcemod/configs/ has command names, integrations and reports.
Link to the site
Adding the server to the admin panel and issuing a token are covered in "Connect a game server". In short, for SourceMod:
Issue a token
Open AdminServers, then your server and its "Plugins" tab. Expand "How to install GameLink" and click "Issue token". The window shows a ready command with the token already filled in. It is shown only once.

Run the command in the server console
sm_flute_setup "https://<YOUR_DOMAIN>" <SERVER_TOKEN>The command works only in the server console or over RCON. Typed in game, it answers sm_flute_setup runs only in the server console, even for an admin. It writes the address and token to cfg/sourcemod/flute_connect.cfg and connects right away:
[Flute] saved to cfg/sourcemod/flute_connect.cfg, connecting to https://<YOUR_DOMAIN>Without console access, put two lines into cfg/sourcemod/flute_connect.cfg and restart the server. SourceMod will not read the url = … and token = … lines from "No access to the console" in the token window; it needs this form:
flute_url "https://<YOUR_DOMAIN>"
flute_token "<SERVER_TOKEN>"Check the link
sm_flute_status[Flute] FluteSourceConnect/1.0.0 | configured=yes server_id=3 last_sync=4s ago next=10s pending=0 acks=0 events=0 last_error=-configured=yes, a recent last_sync and last_error=- mean the link works. Within a minute the "Plugins" tab in the admin panel shows "Connected". Under "For power users: security, command queue, in-game menu", the "What the plugin reports" block lists the plugin, the game, the players and the actions the server can run.
The token itself never goes over the network. The plugin signs every request with it and checks the signature of every answer, and the site recognises the server by the X-Flute-Key header, which the token cannot be recovered from. The game server's clock must stay within 60 seconds of the site's.
Account linking
Players are known by their SteamID. A player opens "Profile → Settings → Linked accounts" on the site, clicks "Get code" and types !link CODE in the game chat. The code lives for 10 minutes. The link then has to be confirmed on the site; until then the game says "Almost done! Confirm the link on the site".
!balance shows the site balance. !login sends a one-time sign-in link that works for 2 minutes; it is also printed to the console because links in Source chat are not clickable. Signing in from the game works only when "Allow signing in from the game" is on under "Security" on the "Plugins" tab.
Players Steam has not verified yet, and every player on a server with sv_lan 1, are not sent to the site.
What the plugin does and which module it needs
Online count, map, account linking, sign-in from the game, balance and the site menu work with the engine alone. Everything else is picked up by a site module: without it, the server still sends the data, but the site does not show it.
| Feature | Site module |
|---|---|
| Online count, map and players on the servers page | Monitoring |
Stats: kills, rounds, player.stats | Stats |
| Bans, mutes and gags in both directions | Sentinel |
!report player reports | Reports |
| Admin groups and VIP | GiveCore |
| Store purchases | Shop |
| Delivering rewards to the server: group, currency, command | Rewards, required by Shop, GiveCore and Stats |
| Demo recording and viewing | Demos |
Purchases and perks
Purchases reach the server as site commands. When the player is offline, the command waits on the site and is sent again about a second after they join. The same command never runs twice.
A group with the vip: prefix goes to VIP Core (R1KO); the plugin grants other groups as SourceMod admin groups from admin_groups.cfg and restores them every time the player joins. The site currency credits goes to Shop Core (R1KO), exp to Levels Ranks. The plugin only tells the site what it can carry out: without Shop Core, the site will not offer credit grants on this server.
In GiveCore the delivery method is set in "How the site passes the privilege to the server"; for GameLink it is "Flute plugin".
Bans, mutes and gags
Bans from the site run through SourceBans++ or MaterialAdmin, or through SourceMod's built-in bans when neither is loaded. Gags and mutes go through SourceComms++ or MaterialAdmin. With none of them, the plugin blocks chat and voice itself, with a duration, and keeps the block on disk.
Bans, gags and mutes that an admin issues or lifts in game are sent back to the site. Whether the site keeps them is up to the Sentinel setting "Punishments issued on a server". Offline bans and unbans in SourceBans++ are invisible to the plugin, because SourceBans++ does not report them.
Stats
The plugin sends joins and leaves, deaths, round ends and map starts. In CS:GO, CS:S and TF2 a death carries tags such as first_blood, domination, revenge. Once a round it sends player.stats: shots, hits, damage, MVPs, bombs and hostages in CS:GO and CS:S; damage, teamkills and suicides in TF2; damage in L4D2. Warmup and bots are not counted. To turn the counters off: flute_stats 0.
Reports
!report lists the players, then the reasons. !report name jumps straight to the reasons. The report sends the map, the match, the suspect's score and up to 10 of their latest chat messages. One report per player about the same target every 5 minutes, and no more than three reports from one player in 10 minutes. Reports takes them in while "Take reports from the game" is on.
In-game menu
!menu or !flute opens the site menu, !settings its settings page. The menu is drawn with the standard SourceMod menu: seven items per page, six on CS:GO, no pictures. Menu sections are put together in AdminServersIn-game menu (In-game menu). To let players pay from the menu with their site balance, turn on "Allow balance charges" under "Security".
Demo recording
A second plugin records a SourceTV demo for every match, adds round data and uploads it to the site with the same token. The Demos module lets players watch it on the site. The site parses the demo file for CS:GO and CS:S; for other games it uses only the chat from the plugin's data.
Install SteamWorks and the plugin
Put SteamWorks.ext.so into addons/sourcemod/extensions/ and unpack flute-source-demos-sourcemod-1.0.0.zip into the game folder. The archive holds addons/sourcemod/plugins/flute_demos.smx and cfg/sourcemod/flute_demos.cfg.
Set the address and token
The token is the same one GameLink uses.
demos_site "https://<YOUR_DOMAIN>"
demos_token "<SERVER_TOKEN>"Turn on SourceTV
The plugin sets tv_enable 1 itself, but SourceTV only starts when a map loads. Change the map twice, or add tv_enable 1 to server.cfg and change the map once. To check:
demos_status[Demos] queue=0 running=0 steam_ready=1 voice_capture=1 url=https://<YOUR_DOMAIN>Recording starts with the next round.
SourceTV records a stream delayed by tv_delay, so the last seconds of a match can be missing from the file. On a recording server, set tv_delay 0.
Commands and permissions
| Command | Who | What it does |
|---|---|---|
!link CODE | player | link Steam to a site account |
!balance | player | site balance |
!login | player | one-time sign-in link to the site |
!menu, !flute | player | site menu |
!settings | player | menu settings page |
!report [name] | player | report a player |
sm_flute_setup <address> <token> | server console, RCON | save the address and token and connect |
sm_flute_status | flag z | connection, last sync, queues, last error |
sm_flute_sync | flag z | sync now |
sm_flute_reload | flag z | reread addons/sourcemod/configs/flute_connect.cfg |
demos_status | server console, RCON | demo upload queue |
Chat commands also work with /. The names are set in the commands section of addons/sourcemod/configs/flute_connect.cfg and change after a restart.
Plugin config
flute_url "https://<YOUR_DOMAIN>"
flute_token "<SERVER_TOKEN>"
flute_allow_raw "0"
flute_stats "1"| Setting | Default | What it changes |
|---|---|---|
flute_url | empty | site address without /api; a subfolder works too |
flute_token | empty | server token flute_srv_… |
flute_allow_http | 0 | 1 allows an http:// address, only for a site on the same machine |
flute_allow_admin_groups | 0 | 1 lets the site grant admin groups with the z or m flag |
flute_allow_raw | 0 | 1 runs console commands from the site; with 0 only standard actions run |
flute_http_timeout | 10 | request timeout, seconds |
flute_events | player.join,player.quit,player.death,round.end,map.start | which events to send; chat.message can be added |
flute_stats | 1 | send player.stats |
flute_chat_prefix | {green}[Flute]{default} | chat message prefix |
flute_debug | 0 | log every request and command |
Troubleshooting
For any other message, use the error lookup.
last_error=not configured
The address or token is missing. Run sm_flute_setup in the server console, or put flute_url and flute_token into cfg/sourcemod/flute_connect.cfg.
HTTP 401: the site refused the key id — reset the token in the admin and sm_flute_setup again
The site does not know this token: it was reset or revoked. Issue a new one on the "Plugins" tab and run sm_flute_setup again.
sync refused: invalid_signature — check the server clock (±60 s)
The game server's clock is more than 60 seconds off the site's. Turn on time sync (NTP) on the server machine.
| Message or symptom | What to do |
|---|---|
http:// is refused: use https://, or flute_allow_http 1 for a site on this machine | use an https:// address |
the answer is not signed by the site | the answer did not come from the site, for example from a proxy or a hosting error page; nothing in it was run |
| the plugin does not load | check sm exts list: flute_connect.smx does not start without RIPExt |
| the game says "Your Steam ID is not verified yet" | Steam has not authorised the player yet, wait a few seconds; linking does not work on a server with sv_lan 1 |
| a site command is waiting | the player is offline, the command runs when they join; flute_debug 1 shows the line |
group.add: admin group '…' does not exist on this server | add the group to admin_groups.cfg |
group.add: admin group '…' has the root or rcon flag — refused | the group has the z or m flag; set flute_allow_admin_groups 1 if that is intended |
command #… refused | the blocked-command list stopped a console command, see "Blocked commands" below |
SourceTV is not active — set tv_enable 1 and change the map; recording skipped | change the map or add tv_enable 1 to server.cfg |
http=401: the site refused the key id — check demos_token | wrong demos_token; the demo stays on disk and uploads after you fix it and change the map |
[Demos] discarding … — no players connected during the recording | only bots were on the server; such recordings are deleted |
Reference
An integration turns on by itself when its plugin is loaded. In the integrations section of addons/sourcemod/configs/flute_connect.cfg each one can be set to auto, on or off: sourcebans, sourcecomms, materialadmin, vipcore, shop, levelsranks.
| Site action | Plugin | How it runs |
|---|---|---|
| ban, unban | SourceBans++ | sm_ban #userid min "reason", offline sm_addban min STEAM_X "reason", sm_unban STEAM_X |
| MaterialAdmin | the same, offline sm_addban STEAM_X min "reason" | |
| neither | SourceMod built-in bans | |
| gag, mute, unblock | SourceComms++, MaterialAdmin | sm_gag / sm_mute #userid min "reason", online only |
| neither | the plugin's own chat and voice block | |
vip:… group | VIP Core (R1KO) | sm_addvip, sm_delvip, works offline too |
| other groups | SourceMod | a group from admin_groups.cfg |
| credits | Shop Core (R1KO) | sm_givecredits / sm_takecredits #userid N, online only |
| experience | Levels Ranks | directly through the plugin, online only |
| reload admins | SourceMod, SourceBans++, MaterialAdmin | sm_reloadadmins |
A sanction from the site is recorded as issued by the console: the built-in lines do not pass the moderator's name. You can set your own line in the templates section, with {userid}, {steamid}, {steam2}, {steam3}, {accountid}, {name}, {reason}, {minutes}, {seconds}, {group}, {amount}, plus {admin} and {ref} in ban and gag lines.
Site modules work with these plugins' databases directly; you connect a database on the server's "Plugins" tab with "Connect a plugin". Sentinel works with the SourceBans++ and MaterialAdmin database. Stats reads HLstatsX:CE on all three games, Levels Ranks and RankMe for CS:S, TF2 Stats for TF2 and Custom Player Stats for L4D2. GiveCore writes admins to SourceBans++, MaterialAdmin and SourceMod on all three games. It supports VIP Core and Shop Core for CS:S, and Zephyrus Store for CS:S, TF2 and L4D2.
| Section | What it sets |
|---|---|
commands | chat command names, comma-separated: sm_link gives !link and /link |
report | reports: enabled 1, reasons wallhack,aimbot,abuse,grief,other, same_target_seconds 300, max_reports 3, window_seconds 600, chat_lines 10, chat_seconds 300 |
command_blacklist | console commands the site may not run |
integrations | auto, on or off for each integration |
templates | your own console lines for bans, VIP, credits and other actions |
group_routing | where groups go: vip: to VIP Core, the rest to admin groups |
currencies | where the site currency goes: credits to Shop, exp to Levels Ranks |
Report reasons are labelled by the Reason <code> phrase in translations/flute_connect.phrases.txt. The site files a code under a category by the words in it: wall and aim as cheating, abuse and toxic as abuse, grief and team as griefing.
Console commands from the site run only with flute_allow_raw 1. Always blocked: alias, exec, execifexists, bind, rcon, rcon_password, sv_cheats, meta, plugin_load, plugin_unload, sm plugins, sm exts, sm_rcon, sm_execcfg, sm_cvar, sm_flute_setup and the flute_* settings. By default command_blacklist adds sv_password,quit,exit,_restart,restart,killserver,writeid,writeip. Case, quotes and extra spaces do not get around the list.
| Setting | Default | What it changes |
|---|---|---|
demos_site | empty | site address; empty keeps demos on disk |
demos_token | empty | this server's GameLink token |
demos_allow_http | 0 | 1 allows an http:// address |
demos_voice_capture | 1 | SourceTV hears every player, so voice ends up in the demo |
demos_voice_privacy_notice | 1 | tells the site that voice is recorded |
Files go to addons/sourcemod/data/demos/: the .dem is deleted after upload, the .json stays. Cleaning up old files is up to you. If the server crashed during an upload, it resumes on the next map.