Skip to content
View in the app

A better way to browse. Learn more.

Learn more

relic-custody/addons/amxmodx/scripting/include/olds_relic.inc

olds_relic.inc
48 lines · 1.3 KB · Pawn include
Raw
/*
 * Relic Custody (olds_relic) API, for the team artifact add-on or a bridge plugin.
 * Copyright (C) 2026 daemon (olds.ro)
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
#if defined _olds_relic_included
    #endinput
#endif
#define _olds_relic_included

#pragma reqlib olds_relic
#if !defined AMXMODX_NOAUTOLOAD
    #pragma loadlib olds_relic
#endif

/**
 * The artifact was given to (or picked up by) the player: his hold starts. If someone
 * else held it, that hold ends. Calling it again for the holder changes nothing.
 * A player who dropped it and gets it back within 1 second keeps one hold.
 *
 * @param id  player index
 * @return    1 on success
 * @error     invalid or disconnected player
 */
native olds_relic_granted(id);

/**
 * The holder dropped the artifact (it lies on the ground): his hold ends.
 *
 * @param id  player index (the holder)
 * @return    1 when id held it, 0 otherwise
 */
native olds_relic_dropped(id);

/**
 * The artifact went straight from one player to another.
 *
 * @param from  the old holder (0 when unknown)
 * @param to    the new holder
 * @return      1 on success
 * @error       invalid or disconnected new holder
 */
native olds_relic_transferred(from, to);

/**
 * The artifact was reset (returned to its base, removed): any hold ends.
 */
native olds_relic_reset();

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.