11 hours ago11 hr Administrator Players buy armor with a chat command instead of using the buy menu. Buy Armor Command 1.0.0 (olds.ro) Players buy armor with a chat command instead of the buy menu: /armor for Kevlar, /helmet for Kevlar and helmet. The same rules as the buy menu apply, and a purchase that would only waste money is refused. /armor fills the armor up to 100. A helmet the player already has is kept./helmet gives Kevlar and helmet. When the Kevlar is already full, only the helmet is paid (the difference between the two prices), as in the buy menu.Buying works only while alive, inside the player's own buy zone and before the buy time (mp_buytime) is over.Refused, with a chat line and no money taken: outside the buy zone, after the buy time, /armor with full armor, /helmet with a helmet already owned, or not enough money.The commands work in both say and say_team, and the typed command is not shown in chat. Requirements ReHLDS, ReGameDLL_CS, Metamod-r, ReAPIAMX Mod X 1.10.0.5490 or newer, with the cstrike module (enabled by default) Install Compile scripting/olds_buyarmor.sma and copy olds_buyarmor.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_buyarmor.txt to addons/amxmodx/data/lang/.Copy configs/plugins/olds_buyarmor.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_buyarmor.amxx to addons/amxmodx/configs/plugins.ini. Settings (addons/amxmodx/configs/plugins/olds_buyarmor.cfg) olds_ba_kevlar 650 price of /armor (Kevlar) olds_ba_vesthelm 1000 price of /helmet (Kevlar and helmet); with full Kevlar the player pays only the difference The buy time is the server's own mp_buytime (minutes; -1 = no limit). Commands (chat, say or say_team) /armor buy Kevlar /helmet buy Kevlar and helmet Chat text "[Armor] You bought Kevlar for $650." and the refusal lines are in data/lang/olds_buyarmor.txt and can be translated there. The purchase sound is the game's own items/ammopickup2.wav, so nothing is downloaded. 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-0144. 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_buyarmor.sma, test/lib0144_probe.sma License: GPL-3.0-or-later.Written for the olds.ro plugin workshop (LIB-0144), by alexit and checked by the automated Claude review. Buy Armor Commandv1.0Counter-Strike 1.6PluginTests: warningsAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.6 KBUpdated 11 hours agoSign in to downloadolds_buyarmor.smaPawn (AMX Mod X) · 215 lines4 files/* * Buy Armor Command (olds.ro workshop card LIB-0144) * * Players buy armor with a chat command instead of the buy menu, under the * same rules as the menu: only alive, inside a buy zone and while the buy * time lasts. A purchase that would waste money is refused. *Show all 215 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.