Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Captain's Last Order

Featured Replies

  • Administrator

Let the human captain leave a short order that survivors receive if the captain falls.

Captain's Last Order 1.0.0 (olds.ro)

The human captain leaves a short order with /lastorder. If the captain falls and the zombie core confirms it, every living human gets that order once.

Requirements

  • AMX Mod X 1.10.0.5490 or newer (hamsandwich)
  • A zombie core (Zombie Hell or compatible) that names the captain and confirms deaths through include/olds_lastorder.inc; without a core an admin can name the captain and set olds_lastorder_confirm 0

Install

  • Compile scripting/olds_lastorder.sma and copy olds_lastorder.amxx to addons/amxmodx/plugins/ (before the zombie core).
  • Copy data/lang/olds_orders.txt to addons/amxmodx/data/lang/ (server side only; nothing for clients to download).
  • Give the core scripting/include/olds_lastorder.inc.

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

  olds_lastorder_count 6     presets offered in the menu (1-12)
  olds_lastorder_confirm 1   1 = a captain's death counts only when the core
                             confirms it; 0 = every death counts
  olds_lastorder_team 2      the humans' team (1 = T, 2 = CT)

Players

  say /lastorder   (captain only) opens the menu of presets. Picking one
                   stores it; picking again replaces it, and only the newest
                   is ever sent. Anyone else is refused.

How it works

  • The captain's death (Ham_Killed, post) with an order pending asks the core through the olds_lastorder_confirm forward; PLUGIN_HANDLED confirms. A core whose elimination happens elsewhere (an infection, a delayed check) calls olds_lastorder_eliminated(id) instead.
  • Delivery: one chat line to each living human, in that player's language (the presets are dictionary keys LO_ORDER_1..LO_ORDER_12), then the order is cleared, so it is never sent twice.
  • The pending order is dropped when the captain disconnects, when another player becomes captain, and at every new round or restart.

Translations data/lang/olds_orders.txt ships in English ([en]). Add a block such as [ro] with the same keys for other languages; players get their own.

Admin (ADMIN_KICK)

  amx_lastorder                          captain, pending order, sent
  amx_lastorder captain <player|none>    names the captain (for servers
                                         without a core)

API (library "olds_lastorder", include/olds_lastorder.inc)

  native olds_lastorder_set_captain(id)  (0 = nobody)
  native olds_lastorder_get_captain()
  native olds_lastorder_eliminated(id)
  forward olds_lastorder_confirm(captain, killer)

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/include/olds_lastorder.inc, addons/amxmodx/scripting/olds_lastorder.sma, test/lo_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-087).

Captain's Last Order
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads5.1 KBUpdated 8 hours ago
Sign in to download
Pawn (AMX Mod X) · 266 lines
/*
 * Captain's Last Order (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 266 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.