Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Alexit/

Buy Armor Command

Plugin
Alexit6493199954Version 1.0: First release.History
addonsVersion 1.0: First release.
README.txtVersion 1.0: First release.
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, ReAPI - AMX Mod X 1.10.0.5490 or newer, with the cstrike module (enabled by default) Install 1. 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. 2. Copy data/lang/olds_buyarmor.txt to addons/amxmodx/data/lang/. 3. 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.) 4. 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).

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.