Skip to content
View in the app

A better way to browse. Learn more.

Learn more

wandering-hill/addons/amxmodx/scripting/include/olds_hill_api.inc

olds_hill_api.inc
26 lines · 1 KB · Pawn include
Raw
/*
 * olds_hill_api.inc - what olds.ro King of the Hill add-ons expect from a King of the Hill
 * core (library "olds_hill"). Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.
 *
 * A core that offers these natives lets add-ons read and move the hill and decide when a
 * team scores. Without them each add-on falls back to its own zone and score.
 */
#if defined _olds_hill_api_included
    #endinput
#endif
#define _olds_hill_api_included

#define OLDS_HILL_SIDE_T  1
#define OLDS_HILL_SIDE_CT 2

/* The box of the hill in play; returns 0 when there is no hill. */
native olds_hill_get_zone(Float:mins[3], Float:maxs[3]);

/* Moves the hill to this box; the core scores in it from now on. Returns 1 when done. */
native olds_hill_set_zone(const Float:mins[3], const Float:maxs[3]);

/* Adds points to a side (OLDS_HILL_SIDE_*), with the core's own messages and win check. */
native olds_hill_add_score(side, points);

/* 1 = the core stops scoring on its own and waits for olds_hill_add_score. */
native olds_hill_set_external(on);

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.