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.