Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Long Jump Web Stats

Featured Replies

  • Administrator

Exports long jump records to a web page for ranking, using a MySQL table and a small PHP file.

Long Jump Web Stats (olds.ro workshop card LIB-0973) Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.

Puts the long jump records on a web page: the plugin copies them to a MySQL table, a small read-only PHP page (web/ranking.php.txt) shows it sorted by distance.

Where the records come from: the olds.ro Long Jump Statistics plugin (olds_ljstats) keeps them in the nVault "olds_ljs" ("pb:<SteamID>" per player, "top" for the record table). This plugin reads the same vault.

  • New record: twice a second the connected players' records are looked up; a changed one is written at once with SQL_ThreadQuery (INSERT ... ON DUPLICATE KEY UPDATE): SteamID, name, distance, pre-speed, date. The table is made if it is missing.
  • amx_ljwebsync (ADMIN_RCON): empties the table and writes every record of the in-game record table (/ljtop) again.
  • Names and SteamIDs are escaped (SQL_QuoteString); the table name may only hold letters, digits and _.
  • The database down or unreachable: the first error is logged, then at most one line every five minutes with the count; jumps go on as usual.
  • amx_ljweb_status (ADMIN_RCON): queries sent, failed, the last query.

Cvars (configs/plugins/olds_ljweb.cfg; host, user, pass and db are protected): olds_ljw_host "", olds_ljw_user "", olds_ljw_pass "", olds_ljw_db "", olds_ljw_table "olds_lj"

Table (made by the plugin): steamid VARCHAR(48) PRIMARY KEY, name VARCHAR(96), distance FLOAT, pre FLOAT, date DATETIME

Web page: upload web/ranking.php.txt as ranking.php, and web/ranking.css, to the web host (they are not sent to players; the workshop's package format takes no .php files, hence the .txt), fill in the settings at the top of ranking.php and use a MySQL user that may only SELECT from the table. The page is read only and escapes everything it prints.

Install: compile scripting/olds_ljweb.sma with amxxpc 1.10, add olds_ljweb.amxx to plugins.ini after olds_ljstats, enable the mysql module (sqlx) in modules.ini. No downloads.

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_ljweb.sma, test/ljw_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 (LIB-0973).

Long Jump Web Stats
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads6.7 KBUpdated 6 hours ago
Sign in to download
Pawn (AMX Mod X) · 279 lines
/*
 * Long Jump Web Stats (olds.ro workshop card LIB-0973)
 * 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 279 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.