Skip to content
View in the app

A better way to browse. Learn more.

Learn more

captain-s-last-order/addons/amxmodx/scripting/include/olds_lastorder.inc

olds_lastorder.inc
38 lines · 1.1 KB · Pawn include
Raw
/*
 * Captain's Last Order natives and forward (olds.ro), GPL-3.0-or-later.
 */
#if defined _olds_lastorder_included
    #endinput
#endif
#define _olds_lastorder_included

#pragma reqlib olds_lastorder

/**
 * The zombie core names the human captain (0 = nobody). A different
 * captain is a role transfer: the old captain's pending order is dropped.
 *
 * @return          1 on success, 0 on a bad player
 */
native olds_lastorder_set_captain(id);

/**
 * @return          the current captain, or 0
 */
native olds_lastorder_get_captain();

/**
 * The core confirms that this player is eliminated (killed for good or
 * infected). If it is the captain with an order, the order is delivered now.
 *
 * @return          1 if an order was delivered, 0 otherwise
 */
native olds_lastorder_eliminated(id);

/**
 * Called from the Killed hook when the captain dies with an order pending.
 * The core returns PLUGIN_HANDLED to confirm that the death counts; then the
 * order is delivered. Return PLUGIN_CONTINUE when it does not count (for
 * example a death the core will undo with a respawn).
 */
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.