Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Daemon/

Captain's Last Order

Plugin
Daemon2564e20324Version 1.0.0: First release.History
addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
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 1. Compile scripting/olds_lastorder.sma and copy olds_lastorder.amxx to addons/amxmodx/plugins/ (before the zombie core). 2. Copy data/lang/olds_orders.txt to addons/amxmodx/data/lang/ (server side only; nothing for clients to download). 3. 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)

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.