Skip to content
View in the app

A better way to browse. Learn more.

Learn more

round-reset-petition/addons/amxmodx/scripting/include/olds_resetpet.inc

olds_resetpet.inc
37 lines · 1.1 KB · Pawn include
Raw
/*
 * Round Reset Petition natives and forward (olds.ro), GPL-3.0-or-later.
 */
#if defined _olds_resetpet_included
    #endinput
#endif
#define _olds_resetpet_included

#pragma reqlib olds_resetpet

/**
 * A KZ/surf timer plugin reports a player's run. While any player has a
 * running timer an accepted petition waits.
 *
 * @param id        player index (1..MaxClients)
 * @param running   true when the run starts, false when it ends or stops
 * @return          1 on success, 0 on a bad player
 */
native olds_resetpet_timer(id, bool:running);

/**
 * Adds a jail box for the current map (not saved to the file).
 *
 * @return          the number of boxes now, or 0 when the list is full
 */
native olds_resetpet_add_jail(const Float:mins[3], const Float:maxs[3]);

/**
 * Called once when a petition reaches the quorum and no timed run is
 * active. A round manager resets the round and returns PLUGIN_HANDLED. If
 * no plugin handles it and olds_resetpet_fallback is 1, the petition ends
 * the round as a draw itself.
 *
 * @param votes     players who asked
 * @param needed    the quorum at that moment
 */
forward olds_resetpet_request(votes, needed);

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.