Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Buddy Shield

Featured Replies

  • Administrator

Let two humans share one infection block after both accept.

Buddy Shield 1.0.0 (olds.ro)

Two humans agree to share one infection block. The first zombie bite on either of them is stopped, and the pair is used up: the next bite on either partner infects as usual.

Requirements

  • AMX Mod X 1.10.0.5490 or newer
  • Zombie Plague 5.0 (zp50_core, zp50_gamemodes; zp50_ammopacks only when olds_buddyshield_cost is above 0)

Install

  • Compile scripting/olds_buddyshield.sma and copy olds_buddyshield.amxx to addons/amxmodx/plugins/, listed after the ZP 5.0 plugins.
  • Copy data/lang/olds_buddyshield.txt to addons/amxmodx/data/lang/. No downloads: the block plays the stock items/gunpickup2.wav and shows a DHUD line.

Settings (addons/amxmodx/configs/plugins/olds_buddyshield.cfg, made on first run)

  olds_buddyshield_cost 0   ammo packs the inviter pays when the partner
                            accepts (0 = free)

Players

  say /shield <name>   invites that living human; they get a menu (Accept /
                       Decline, 20 seconds). A zombie, a dead player or
                       somebody already paired is refused.

How it works

  • zp_fw_core_infect_pre: when a zombie player attacks a paired human, the plugin returns ZP_PLUGIN_HANDLED, so ZP cancels that infection. The pair is cleared in the same call, so the charge is used exactly once. Infections that are not a zombie's attack (the mode picking its first zombies) are never blocked.
  • The pair is also cleared when a partner changes role (zp_fw_core_infect_post, zp_fw_core_cure_post), disconnects, when a special mode starts (any mode whose name does not contain "Infection"), and at the end of the round (zp_fw_gamemodes_end).
  • With a cost, the inviter must have the packs when inviting and when the partner accepts; they are taken only when the pair forms.

Admin (ADMIN_KICK)

  amx_buddyshield   lists the pairs and the bites blocked this map

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_buddyshield.sma, test/zp_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · 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 (AMX-062).

Buddy Shield
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads4.9 KBUpdated 8 hours ago
Sign in to download
Pawn (AMX Mod X) · 325 lines
/*
 * Buddy Shield (olds.ro)
 * Copyright (C) 2026 daemon (olds.ro)
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
Show all 325 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.