Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Longest Kill Record

Featured Replies

  • Administrator

The server records the longest-distance kill on each map with the weapon used. A new record is announced to everyone, and /longest shows the five longest kills on the map with names and weapons.

Longest Kill Record 1.0.0 (olds.ro)

Keeps the five longest gun kills of each map, in metres. A kill that beats the map's record is announced to everyone:

[Longest] New longest kill: 74 m with the AWP by Ann on Bob!

say /longest lists the five longest kills of the map with names, weapons and distances. The records are saved, so they stay over map changes and server restarts, and each map has its own.

Requirements

  • ReGameDLL_CS, Metamod-r and ReAPI
  • AMX Mod X 1.10 or newer with the nvault module (it ships with AMX Mod X)
  • Tested on ReGameDLL_CS 5.30.0.814, ReAPI 5.29.0.358 and AMX Mod X 1.10.0.5490

Install

  • Compile scripting/olds_longest.sma with amxxpc 1.10 and copy olds_longest.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and reapi_*.inc) in addons/amxmodx/scripting/include/.
  • Copy data/lang/olds_longest.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_longest.cfg to addons/amxmodx/configs/plugins/.
  • Add olds_longest.amxx to addons/amxmodx/configs/plugins.ini.

What counts

  • Only gun kills: the fatal damage must be the killer's own bullets with a gun in their hands. Grenades, the knife, the bomb, falls, suicides and kills by the world never count.
  • Only enemies, except on free-for-all servers (mp_freeforall 1), where every other player counts.
  • The distance is measured between the killer and the victim at the moment of the kill (get_distance_f) and turned into metres with olds_longest_scale. With the default 0.0254 one unit is one inch, so 2900 units are 74 m.
  • A kill is a new record only when it is longer than the map's current record; a kill as long as one already listed goes after it.
  • The five longest kills of each map are kept in the nvault file olds_longest (addons/amxmodx/data/vault/olds_longest.vault): distance, weapon, SteamID and name of the killer. One player can hold several places.

Settings (addons/amxmodx/configs/plugins/olds_longest.cfg)

  olds_longest_enable  1       1 = on, 0 = off (nothing is recorded)
  olds_longest_scale   0.0254  metres per game unit

Commands

  say /longest          (also say_team) the five longest kills on this map
  olds_longest_status   (server console) the same list with the distances
                        in units and the SteamIDs

Files Texts are in data/lang/olds_longest.txt (English). Nothing is downloaded by players.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card IDEA-2804ED3EE2032BB2. Licence: GPL-3.0-or-later.

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_longest.sma, test/olds_longest_test.sma

Idea: alexit · Plugin: alexit · 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 (IDEA-2804ED3EE2032BB2).

Longest Kill Record
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads6 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 383 lines
/*
 * Longest Kill Record (olds.ro workshop card IDEA-2804ED3EE2032BB2)
 *
 * Keeps the five longest gun kills of each map, in metres. A kill that beats
 * the map's record is announced to everyone ("New longest kill: 74 m with
 * the AWP"), and /longest lists the five longest kills of the map with
 * names, weapons and distances. The records stay over map changes and
Show all 383 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.