Skip to content
View in the app

A better way to browse. Learn more.

Learn more

AK vs M4 Duel Mode

Featured Replies

  • Administrator

A rifle rivalry deathmatch: players may only use the AK-47 or the M4A1, and the scoreboard shows which side leads.

AK vs M4 Duel Mode 1.0.0 (olds.ro)

A rifle rivalry for deathmatch servers: everyone fights with the AK-47 or the M4A1 (and a knife), and a HUD line shows which rifle has more kills.

Requirements

  • AMX Mod X 1.10.0.5490 or newer
  • ReGameDLL_CS 5.30.0.814 or newer with ReAPI 5.29.0.358 or newer

Install

  • Compile scripting/olds_akm4.sma and copy olds_akm4.amxx to addons/amxmodx/plugins/.
  • Copy data/lang/olds_akm4.txt to addons/amxmodx/data/lang/. No downloads: both rifles and the HUD line use stock resources.

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

  olds_akm4_enable 1      1 = the mode is on
  olds_akm4_respawn 2.0   seconds before a dead player respawns (0.5-30)
  olds_akm4_pick 1        1 = the rifle menu opens at every spawn

How it works

  • At spawn (RG_CBasePlayer_Spawn) the player is stripped with rg_remove_all_items and gets a knife and the last picked rifle with 90 spare rounds (the first time: AK-47 for T, M4A1 for CT). The menu opens with the last pick marked; choosing the other rifle swaps it at once. Say /rifle to open the menu at any time.
  • Buying is blocked: the buy menu commands (buy, buyequip) are refused, and every purchase is refused in RG_CBasePlayer_HasRestrictItem (ReAPI has no CSGameRules CanPlayerBuy hook to use). Picking up anything but the knife, the bomb and the player's own rifle is blocked (RG_CBasePlayer_HasRestrictItem), so weapons dropped by others stay on the floor.
  • Kills made with the AK-47 or the M4A1 on an enemy count for that rifle (RG_CBasePlayer_Killed). The HUD line at the top shows "AK-47 n vs M4A1 n" and which rifle leads.
  • Dead players on a team respawn after olds_akm4_respawn seconds.

Admin

  amx_akm4_status   (ADMIN_KICK) the score and each player's pick and weapons
  amx_akm4_reset    (ADMIN_CFG)  sets the score to 0 : 0

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_akm4.sma, test/akm4_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 (LIB-0776).

AK vs M4 Duel Mode
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.9 KBUpdated 8 hours ago
Sign in to download
Pawn (AMX Mod X) · 343 lines
/*
 * AK vs M4 Duel Mode (olds.ro)
 * Copyright (C) 2026 daemon (olds.ro), written by daemon's plugin agent
 *
 * 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) any later version.
Show all 343 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.