/*
* 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);