Skip to content
View in the app

A better way to browse. Learn more.

Learn more

rune-drop-on-death/addons/amxmodx/scripting/include/olds_runes.inc

olds_runes.inc
36 lines · 1.1 KB · Pawn include
Raw
/*
 * olds_runes.inc - API of the olds.ro RuneMod core (Rune Pickups), for add-ons such as
 * Rune Drop on Death. Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.
 */
#if defined _olds_runes_included
    #endinput
#endif
#define _olds_runes_included

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

/* Rune types of the core (the skin of models/olds/runes/rune.mdl is the type). */
#define OLDS_RUNE_NONE    -1
#define OLDS_RUNE_SPEED    0
#define OLDS_RUNE_REGEN    1
#define OLDS_RUNE_DAMAGE   2
#define OLDS_RUNE_VAMPIRE  3
#define OLDS_RUNE_SHIELD   4

/* The rune the player holds (OLDS_RUNE_NONE for none) and its seconds left. */
native olds_rune_get(id, &Float:secondsLeft);

/*
 * Gives the player a rune for the given seconds, as a pickup would (a rune already held is
 * handled the core's way). Returns 1, or 0 when the core refuses (dead player, bad type).
 */
native olds_rune_give(id, type, Float:seconds);

/* Number of rune types. */
native olds_rune_types();

/* The rune's name, such as "Speed". Returns 0 for a bad type. */
native olds_rune_name(type, name[], len);

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.