Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Comeback Card

Featured Replies

  • Administrator

Show a returning player their last session date and progress toward an existing rank.

Comeback Card (olds.ro) 1.0.0 Copyright (C) 2026 daemon (olds.ro). Licence: GPL-3.0-or-later.

A returning player sees, privately in chat, when they were last on the server, their rank and the points to the next rank, read from the CMSStats database.

  • The lookup starts once the player is in the server and their identity is valid (client_authorized and client_putinserver). It is one read-only SQLx threaded query; the plugin never writes to the database (a read-only database user is enough).
  • No row for the player: the card says it is their first visit.
  • No rank yet (below the first rank) and the top rank are handled.
  • The card is shown once per visit; say /comeback shows it again.
  • olds_comeback_maxq lookups run at once, the rest wait in line.
  • A reply for a player who has left, or whose identity changed, is thrown away.
  • A database that is down or slow only means no card: the queries run in threads, and failures are logged at most once every 5 minutes.
  • amx_comeback_status (ADMIN_KICK) shows the lookups and the cards.

The schema is set by cvars, so it fits the CMSStats tables of your install: olds_comeback_table "csstats_players", olds_comeback_keycol "steamid", olds_comeback_lastcol "last_join" (olds_comeback_lastunix 0 = DATETIME, 1 = unix time), olds_comeback_pointscol "skill", olds_comeback_ranks "csstats_ranks" (empty = no ranks), olds_comeback_rankname "name", olds_comeback_rankpoints "points" (where a rank starts). olds_comeback_key 0 = SteamID, 1 = name, 2 = IP. Only letters, digits and _ are accepted in these names.

Connection: olds_comeback_driver "mysql" (or "sqlite"), olds_comeback_host, olds_comeback_user, olds_comeback_pass, olds_comeback_db (protected cvars). Other cvar: olds_comeback_maxq 3.

No downloads. Install: compile scripting/olds_comeback.sma with amxxpc 1.10, add olds_comeback.amxx to plugins.ini, copy data/lang/olds_comeback.txt and enable the mysql module.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_comeback.sma, test/cbtest_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (AMX-090).

Comeback Card
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads5.5 KBUpdated 6 hours ago
Sign in to download
Pawn (AMX Mod X) · 351 lines
/*
 * Comeback Card (olds.ro workshop card AMX-090)
 * Copyright (C) 2026 daemon (olds.ro)
 *
 * This program is free software: you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
Show all 351 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.