10 hours ago10 hr Administrator Shows the time left before the bomb explodes on the HUD, with several style options. Bomb Countdown Display 1.0.0 (olds.ro) Once the bomb is planted, every player sees the seconds left before it explodes, counting down each second. Three styles: a plain number, a short text, or a number that turns red in the last 10 seconds. Each player can switch it off and on with /c4timer. olds_c4t_style 0: "45"; 1: "Bomb explodes in 45 s"; 2: "45", turning red in the last 10 seconds.The countdown starts at the plant (mp_c4timer, 45 by default) and ends when the bomb is defused, explodes or the round restarts. It is never shown in the next round.Every player sees it, dead players and spectators too, unless he switched it off with /c4timer (remembered until he leaves).Colour and position: olds_c4t_color, olds_c4t_x, olds_c4t_y (top centre by default).Each number lives 0.9 s. Director HUD texts cannot be cleared, so after a defuse the last number is gone within 0.9 s. Requirements ReHLDS, ReGameDLL_CS, Metamod-r, ReAPIAMX Mod X 1.10.0.5490 or newer Install Compile scripting/olds_c4timer.sma and copy olds_c4timer.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release, in addons/amxmodx/scripting/include/) next to the stock AMX Mod X includes.Copy data/lang/olds_c4timer.txt to addons/amxmodx/data/lang/.Copy configs/plugins/olds_c4timer.cfg to addons/amxmodx/configs/plugins/ and change the values you want. (If the file is missing, the plugin writes one with the defaults the first time it starts.)Add olds_c4timer.amxx to addons/amxmodx/configs/plugins.ini. Settings (addons/amxmodx/configs/plugins/olds_c4timer.cfg) olds_c4t_style 0 0 number, 1 text, 2 number turning red in the last 10 seconds olds_c4t_color "255 255 0" colour (red green blue, 0-255) olds_c4t_x -1.0 horizontal position (-1 = centre) olds_c4t_y 0.1 vertical position (0.0 top, 1.0 bottom) Commands say /c4timer, say_team /c4timer switch the countdown off or on for yourself Texts "Bomb explodes in 45 s" and the /c4timer chat lines are in data/lang/olds_c4timer.txt and can be translated there. Tested on ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-r 1.3.0.149, AMX Mod X 1.10.0-git5490, ReAPI 5.29.0.358. Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-0109. Licence: GNU General Public License v3.0 or later (GPL-3.0-or-later). InstallDownload 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_c4timer.sma, test/lib0109_probe.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-0109). Bomb Countdown Displayv1.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.8 KBUpdated 10 hours agoSign in to downloadolds_c4timer.smaPawn (AMX Mod X) · 234 lines4 files/* * Bomb Countdown Display (olds.ro workshop card LIB-0109) * * Once the bomb is planted, every player sees the seconds left before it * explodes, counting down each second. Three styles: a plain number, a short * text, or a number that turns red in the last 10 seconds. Each player can * switch it off and on with /c4timer.Show all 234 linesChangelogVersions (1)Install into: cstrike/Open the full page →
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.