Skip to content
View in the app

A better way to browse. Learn more.

Learn more

contested-hill-meter/addons/amxmodx/scripting/include/olds_hill_api.inc

olds_hill_api.inc
23 lines · 0.9 KB · Pawn include
Raw
/*
 * olds_hill_api.inc - what the Contested Hill Meter expects 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 the meter decide when a team scores. Without them
 * the meter plugin keeps its own score from the box in configs/olds_hill.ini.
 */
#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]);

/* 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.