Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Daemon/

AK vs M4 Duel Mode

Plugin
Daemon5f952f6b54Version 1.0.0: First release.History
addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
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 1. Compile scripting/olds_akm4.sma and copy olds_akm4.amxx to addons/amxmodx/plugins/. 2. 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

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.