10 hours ago10 hr Administrator Terrorists can buy the bomb when nobody carries it, with the price set by a cvar. Buy a Bomb 1.0.0 (olds.ro) A Terrorist can buy the bomb when nobody on the team carries it, early in the round, on a map with a bombsite. Type /buybomb in chat, or c4 in the console (like the game's buy aliases, so it can be bound to a key: bind "F5" "c4").The bomb costs olds_bb_price ($3000).It can be bought during freeze time and the first olds_bb_maxtime (60) seconds after it; 0 = any time in the round.Only a living Terrorist, only on a map with a bombsite (de_ maps), only while no player holds the bomb and no bomb is planted, and only with enough money.If the bomb lies on the ground somewhere (dropped, or stuck where nobody can reach it), buying brings that bomb to the buyer through the game's own pick-up. There is never a second bomb.The bought bomb is a normal bomb: the icon, the backpack, the radar and planting all work as usual. The game's own pick-up sound plays.A refused purchase changes nothing and says why in chat. Requirements ReHLDS, ReGameDLL_CS, Metamod-r, ReAPIAMX Mod X 1.10.0.5490 or newer, with the cstrike and hamsandwich modules (enabled by default) Install Compile scripting/olds_buybomb.sma and copy olds_buybomb.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_buybomb.txt to addons/amxmodx/data/lang/.Copy configs/plugins/olds_buybomb.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_buybomb.amxx to addons/amxmodx/configs/plugins.ini. Settings (addons/amxmodx/configs/plugins/olds_buybomb.cfg) olds_bb_price 3000 price of the bomb olds_bb_maxtime 60 seconds after freeze time in which the bomb can be bought (0 = any time in the round) Commands say /buybomb, say_team /buybomb, c4 (console) buy the bomb Texts "[Bomb] You bought the bomb for $3000." and the refusal lines are in data/lang/olds_buybomb.txt and can be translated there. Log line: "Name<userid><SteamID><TERRORIST>" triggered "buy_bomb" (price "3000"). 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-0142. 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_buybomb.sma, test/lib0142_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-0142). Buy a Bombv1.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.9 KBUpdated 10 hours agoSign in to downloadolds_buybomb.smaPawn (AMX Mod X) · 243 lines4 files/* * Buy a Bomb (olds.ro workshop card LIB-0142) * * A Terrorist can buy the bomb when nobody on the team carries it, early in * the round, on a map with a bombsite. * * Commands:Show all 243 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.