Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Round Start Score Display

Featured Replies

  • Administrator

Shows the current team score and which side is leading at the start of every round, in a short HUD line.

Round Start Score Display 1.0.0 (olds.ro)

At the start of every round each player sees the team score and which side leads, as a short line near the top of the screen:

    T 4 : 6 CT  CT leads
    T 5 : 5 CT  Tied
    T 7 : 3 CT  T leads  (first to 10)

say /score shows the line again at any time, to that player only.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI
  • AMX Mod X 1.10 or newer (written for 1.10.0.5490)

Install

  • Compile scripting/olds_rscore.sma and copy olds_rscore.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release) next to the stock AMX Mod X includes.
  • Copy data/lang/olds_rscore.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_rscore.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values).
  • Add olds_rscore.amxx to addons/amxmodx/configs/plugins.ini.

Commands

  say /score   (also in team chat) Shows the score line again.

How it works

  • When a round restarts (ReAPI hook RG_CSGameRules_RestartRound, post) the round wins of both teams are read from the game rules (m_iNumTerroristWins, m_iNumCTWins) and the line is shown to every player 0.2 seconds later, once everyone has respawned. After sv_restart or mp_restartgame the score reads 0 : 0.
  • The line uses HUD channel 1, centred, and stays olds_rscore_time seconds. It is drawn in the colour of the leading team; a tie uses the mix of both colours.
  • With olds_rscore_winlimit 1 and mp_winlimit above 0 the line also shows how many round wins end the map, such as "(first to 10)".

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

  olds_rscore_time     4              seconds the line stays (1 - 15)
  olds_rscore_color_t  "255 120 60"   colour when the Terrorists lead, R G B
  olds_rscore_color_ct "100 150 255"  colour when the CTs lead, R G B
  olds_rscore_winlimit 0              1 = also show mp_winlimit ("first to N")

A colour value that is missing reads as 255; every value is kept within 0 - 255. The cvars are read each time the line is shown.

No sounds, models or sprites are added.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2147. Licence: GNU GPL version 3 or later (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_rscore.sma

Idea: olds.ro workshop library · 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 (LIB-2147).

Round Start Score Display
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.4 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 180 lines
/*
 * Round Start Score Display (olds.ro workshop card LIB-2147)
 *
 * At the start of every round each player sees the team score and which
 * side leads, as a short HUD line such as "T 4 : 6 CT  CT leads" (or
 * "Tied" when the scores are equal). say /score shows the line again.
 *
Show all 180 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.