Counter-Strike 1.6
The GameLink plugin for CS 1.6 on AMX Mod X: install, link to the site, non-Steam players, commands, config and demo recording through HLTV.
Your CS 1.6 server is integrated with the site through the GameLink plugin for AMX Mod X, 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. The plugin also handles non-Steam players on ReUnion.
| What you install | Archive | Setup command |
|---|---|---|
| GameLink for AMX Mod X | flute-cs16-amxx-1.0.0.zip | flute_setup |
| HLTV demo recorder | flute-cs16-demos-amxx-1.0.0.zip | none, the address and token go into a cfg |
The archives are in the flute-cs16 releases. The archive name carries the version without a v, and newer releases have a different number.
Requirements
You need HLDS or ReHLDS and AMX Mod X 1.9 or 1.10. The plugin calls the site over HTTPS on its own, so no ports need to be opened. For that it needs the AmxxEasyHttp module (easy_http) 1.4.0 or newer; demo recording needs 1.5.0 or newer. The standard engine, fakemeta and cstrike modules are always required, and hamsandwich is needed to count shots, hits and damage.
The archive holds three builds of the plugin, one per way of handling voice. Enable only one of them in plugins.ini:
| Build | When to use it |
|---|---|
flute_cs16_connect.amxx | plain engine |
flute_cs16_connect_revoice.amxx | ReHLDS with ReAPI and Revoice |
flute_cs16_connect_vtc.amxx | VoiceTranscoder |
Install the plugin
Unpack the archive
Unpack flute-cs16-amxx-1.0.0.zip into cstrike/.
cstrike/addons/amxmodx/
├── plugins/
│ ├── flute_cs16_connect.amxx voice builds, enable one
│ ├── flute_cs16_connect_revoice.amxx
│ ├── flute_cs16_connect_vtc.amxx
│ └── flute_cs16_selftest.amxx self-test, optional
├── configs/plugins/FluteConnect/
│ ├── flute_connect.cfg address, token and every setting
│ └── flute_groups.ini site roles → AMXX flags
├── data/lang/flute_cs16_connect.txt
└── scripting/include/ flutecms_cs16_bridge.inc, flutecms_cs16_compat.incEnable the plugin and easy_http
Add one line to addons/amxmodx/configs/plugins.ini and make sure easy_http is enabled in modules.ini. Restart the server.
flute_cs16_connect.amxxLink to the site
Adding the server to the admin panel and issuing a token are covered in "Connect a game server". In short, for CS 1.6:
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
flute_setup "https://<YOUR_DOMAIN>" <SERVER_TOKEN>The command works only in the server console or over RCON; an admin cannot run it from the game. It writes the address and token to flute_connect.cfg and syncs right away:
[FluteConnect] saved to configs/plugins/FluteConnect/flute_connect.cfg, connecting...Without console access, put flute_url "https://<YOUR_DOMAIN>" and flute_token "<SERVER_TOKEN>" into addons/amxmodx/configs/plugins/FluteConnect/flute_connect.cfg and restart the server. The plugin will not read the url = … and token = … lines from "No access to the console" in the token window as they are.
Check the link
flute_statusFluteCS16Connect 1.0.0
site: https://<YOUR_DOMAIN> token: set
connected: yes server id: 3 last sync: 4 s ago next in 6 s
last error: - failures in a row: 0
unsent acks: 0 delayed commands: 0 buffered events: 0
group mappings: 2 voice backend: engineconnected: yes 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. The game server's clock must stay within 60 seconds of the site's.
Account linking
A player opens "Profile → Settings → Linked accounts" on the site, clicks "Get code" and types /link CODE or !link CODE in the game chat. The code lives for 10 minutes. The link then has to be confirmed on the site.
/balance shows the site balance. /login sends a one-time sign-in link that works for 2 minutes. Links in CS 1.6 chat are not clickable, so the link is also printed to the player's console (~). Signing in from the game works only when "Allow signing in from the game" is on under "Security" on the "Plugins" tab.
Non-Steam players
Under ReUnion and dproto, non-Steam clients also get ids like STEAM_0:1:123 or VALVE_0:1:123, and such an id can be faked. So the plugin sends as Steam only the players Steam has verified, and everyone else as non-Steam players. With ReUnion installed, the plugin asks ReUnion for the type. Without it, flute_trust_steam_ids decides: with 1 any STEAM_ id counts as real Steam, with 0 every id goes out as non-Steam.
"Player authentication" under "Security" sets which players reach the site. "Licensed" (the default) lets through Steam only, "Offline" only non-Steam players, and "With and without Steam" both. For a server with ReUnion, pick "With and without Steam". Non-Steam players can link their account with /link CODE, but cannot sign in from the game or pay with the balance. The exception is "Offline with a password login" mode, for a server that asks for a password itself: there they can do everything, but Steam players are not let through.

A non-Steam player's id depends on the ReUnion settings of each server, so one person can have different ids on different servers. STEAM_ID_LAN, STEAM_ID_PENDING, HLTV and bots never reach 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, gags and mutes | Sentinel |
/report player reports | Reports |
| Groups and flags | 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
Site roles become AMX Mod X flags through flute_groups.ini. The plugin loads a player's roles on join and only removes flags it granted itself, so admins from users.ini keep theirs.
"VIP" "t"
"Admin" "bcdefijmnopqrsu"vip:<name> and admin:<name> groups and the site currency are handed to your own plugins through command templates: flute_group_vip_add_cmd, flute_group_admin_add_cmd, flute_economy_deposit_cmd and their pairs. While a template is empty, the site does not offer that action on this server. The site never grants the l and h flags or the groups root, rcon, owner, superadmin; flute_group_forbidden_flags and flute_group_forbidden_names set that.
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. In GiveCore the delivery method is set in "How the site passes the privilege to the server"; for GameLink it is "Flute plugin".
Bans, gags and mutes
Bans from the site run the command in flute_ban_cmd, by default amx_ban #{userid} {minutes} '{reason}'. An offline player gets flute_ban_offline_cmd, an unban flute_unban_cmd. If your ban system expects the arguments in another order, change the template. Single quotes in a template become double quotes when it runs.
The plugin handles gags and mutes itself: it blocks chat and voice for a set time and keeps the block in addons/amxmodx/data/flute_connect_state.json. Admins issue them with amx_gag, amx_mute, amx_gagmenu or /gag, and players can mute each other personally with /mute.
Gags and mutes issued on the server, and bans from Fresh Bans and Lite Bans, are sent back to the site. Whether the site keeps them is up to the Sentinel setting "Punishments issued on a server". The plugin cannot see bans from AMX Mod X itself, Advanced Bans or AMXBans, and no ban system on CS 1.6 reports unbans to the site.
Stats
The plugin sends joins and leaves, deaths, round ends and map starts, and at the end of each round player.stats: shots, hits, damage, bombs, hostages, teamkills and suicides. The first kill of a round carries the first_blood tag. CS 1.6 has no warmup, so every round counts. Bots are not counted. To turn the counters off: flute_stats 0.
Reports
/report lists the players, then the reasons. /report part_of_name narrows the list. In the console the command is flute_report; plain report there stays the game's radio command. The report sends the map, the match, the round, the suspect's score and up to 10 of their latest messages from the last 5 minutes. 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 as an AMX Mod X menu, seven items per page. 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 GoldSrc server cannot record demos by itself, so the HLTV proxy that ships with HLDS records them, and the plugin drives it over rcon and uploads the file to the site. The Demos module lets players watch the demos on the site. HLTV must run on the same Linux machine and write into this server's cstrike/ folder.
Install the plugin
Unpack flute-cs16-demos-amxx-1.0.0.zip into cstrike/ and add flute_cs16_demos.amxx to plugins.ini. You need easy_http 1.5.0 or newer, sockets and fakemeta.
Start HLTV
Put hltv.cfg next to hltv in the HLDS root and start ./hltv. The HLTV rcon port is 27020 by default.
connect 127.0.0.1:27015
adminpassword "<PASSWORD>"
delay 0
autoretry 1Fill in the config
Here demos_site takes the full upload address, not the site root.
demos_site "https://<YOUR_DOMAIN>/api/v1/demos/upload"
demos_token "<SERVER_TOKEN>"
demos_hltv_address "127.0.0.1:27020"
demos_hltv_password "<PASSWORD>"Change the map
demos_statusThe answer should contain hltv_connected=1. Recording starts with the next round.
Commands and permissions
| Command | Who | What it does |
|---|---|---|
/link CODE | player | link the account to the site |
/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], flute_report | player | report a player |
/mute | player | personally mute another player |
/sorry | player | ask admins to lift a block |
/gag, amx_gag, amx_ungag, amx_mute, amx_unmute, amx_gagmenu, flute_gag, flute_ungag | flag d | chat and voice blocks |
flute_kick | flag c | kick |
flute_setup <address> <token> | server console, RCON | connect the server |
flute_status, flute_sync, flute_sync_access, flute_players | flag l | status, sync, online players' roles, the player list as the site gets it |
demos_status, demos_record, demos_stoprecord | server console, RCON | demo queue, start and stop recording |
Player chat commands also work with !.
Plugin config
Every setting lives in addons/amxmodx/configs/plugins/FluteConnect/flute_connect.cfg. These are the ones changed most often:
| 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_raw | 0 | 1 runs console commands from the site |
flute_events | player.join,player.quit,player.death,round.end,map.start | which events to send |
flute_stats | 1 | send player.stats |
flute_access_enabled | 1 | load site roles on join and grant flags from flute_groups.ini |
flute_ban_cmd | amx_ban #{userid} {minutes} '{reason}' | ban an online player |
flute_ban_offline_cmd | amx_addban '{steam2}' {minutes} '{reason}' | ban an offline player |
flute_unban_cmd | amx_unban '{steam2}' | unban |
flute_group_vip_add_cmd, flute_group_vip_remove_cmd | empty | your VIP plugin's commands for vip:<name> groups |
flute_economy_deposit_cmd, flute_economy_withdraw_cmd | empty | your store's commands for the site currency |
flute_trust_steam_ids | 1 | without ReUnion: 1 treats any STEAM_ id as real Steam |
flute_report_command | report | chat command name for reports; empty turns reports off |
flute_prefix | [Flute] | chat message prefix |
flute_debug | 0 | detailed log; the token is never written to it |
Troubleshooting
For any other message, use the error lookup.
sync refused: unauthorized — the site does not know this token: reset it in Admin -> Servers -> GameLink and run flute_setup again
The token was reset or revoked. Issue a new one on the "Plugins" tab and run 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.
The server sent players its player check turns away
The client has no Steam, and "Player authentication" is set to "Licensed". Pick "With and without Steam". A client with no id at all (STEAM_ID_LAN, STEAM_ID_PENDING) never reaches the site, whatever the mode.
| Message or symptom | What to do |
|---|---|
not configured: run flute_setup <site url> <token> in the server console | run flute_setup |
http:// is refused: use https://, or set flute_allow_http 1 if the site runs on this machine | use an https:// address |
sync refused: the answer is not signed by the site | the answer did not come from the site, for example from a proxy; nothing in it was run |
sync failed: network or sync failed: http_502 | the site is down; the plugin retries with a growing pause up to flute_sync_max |
MIGRATION: FluteCMS CS16 Bridge settings found | settings of the old plugin are left over, see "Moving from FluteCMS CS16 Bridge" below |
| the menu is empty | no menu is set up for the server in "In-game menu", or the site has not sent it yet; check flute_status |
| site commands do not run | flute_debug 1 shows each command; console commands stay off while flute_allow_raw is 0 |
[Demos] no HLTV connected to this server — recording skipped | HLTV is not connected; check connect and autoretry 1 in hltv.cfg |
[Demos] HLTV did not start recording | wrong demos_hltv_password, or HLTV is unreachable at demos_hltv_address |
[Demos] the site does not know demos_token (unauthorized) | demos_token holds the wrong token |
| the last seconds of a match are missing | set delay 0 in hltv.cfg |
Reference
Site modules work with the databases of CS 1.6 plugins directly; you connect a database on the server's "Plugins" tab with "Connect a plugin". Sentinel works with the AMXBans database (bans) and CA Gag (mutes and gags). Stats reads HLstatsX:CE, CSstatsX SQL, CsStats MySQL / Army Ranks Ultimate and Levels Ranks. GiveCore writes admins to the AMX Mod X database and to Fresh Bans.
The old API and its token do not work with GameLink; you need a new flute_srv_… token.
- Remove
flutecms_cs16_bridge*.amxxfromplugins/andplugins.ini, and installflute_cs16_connect*.amxx. - Run
flute_setup <address> <token>. The oldconfigs/plugins/FluteCMS/flutecms_cs16_bridge.cfgcan be deleted. - Carry over your values:
flute_api_basebecameflute_url(the site root without/api/cs16),flute_server_tokenbecameflute_token, andflute_poll_intervalgave way toflute_sync_minandflute_sync_max. Theflute_gag_*,flute_voice_*,flute_chat_intercept,flute_prefix,flute_debugandflute_access_*settings stay the same.
Blocks saved through the old API are not carried over. Plugins that worked with Bridge keep working: the flutecms_cs16_bridge library and the include files kept their names.
Templates can use {userid}, {steam2}, {name}, {reason}, {seconds}, {minutes} (rounded up, 0 means forever), {group}, {amount}, {currency}, plus {admin} and {ref} in ban and unban templates. Values are stripped of quotes, ; and \. A single quote in a template becomes a double quote when it runs, because an HL cfg cannot nest a double quote inside a value.
An empty template means the server cannot do that action, and the site does not offer it.
They run only with flute_allow_raw 1. Always blocked: rcon*, exec*, alias, bind, sv_cheats, meta, amxx, amx_rcon, amx_cvar, amx_cfg, amx_exec*, amx_pause*, localinfo, motd*, servercfgfile, lservercfgfile, mapchangecfgfile, flute_*, the ; character, line breaks and non-ASCII characters. By default flute_command_blacklist adds sv_password,quit,exit,restart,_restart,killserver,writeid,writeip,writecfg,log,logaddress,sv_upload.
| Setting | Default | What it changes |
|---|---|---|
flute_comms_enabled | 1 | the plugin's own gags and mutes, and site actions for them |
flute_gag_times | 1i,5i,10i,30i,1h,1d,1w,1m | durations in the /gag menu: i minutes, h hours, d days, w weeks, m 30 days |
flute_gag_access, flute_gag_high_access, flute_gag_immunity_flags | d, l, a | right to issue, senior admin, immunity |
flute_chat_intercept | 1 | the plugin relays chat itself, needed for personal mutes |
flute_voice_enabled, flute_teamvoice_enabled | 1, 1 | voice control and +teamvoice |
flute_voice_spam_window, flute_voice_spam_max_starts, flute_voice_spam_block_seconds | 8.0, 8, 300 | block for voice spam |
flute_sorry_cooldown | 60 | pause between /sorry, seconds |
The plugin routes voice and chat according to sv_alltalk from 0 to 5. A player can bind +teamvoice: while the key is held, living opponents do not hear them.
| Setting | Default | What it changes |
|---|---|---|
demos_site | empty | the full upload address https://<YOUR_DOMAIN>/api/v1/demos/upload; empty keeps demos on disk |
demos_token | empty | this server's GameLink token |
demos_allow_http | 0 | 1 allows an http:// address |
demos_dir | addons/amxmodx/data/demos | folder inside cstrike/, shared by the plugin and HLTV |
demos_hltv_address | 127.0.0.1:27020 | HLTV rcon address |
demos_hltv_password | empty | the HLTV adminpassword |
demos_voice_capture | 1 | HLTV hears every player, so voice ends up in the demo |
demos_voice_privacy_notice | 1 | tells the site that voice is recorded |
Do not record on this HLTV by hand: the plugin sends it stoprecording on every map. A demo that did not finish uploading during one map starts uploading again on the next.