Skip to content
View in the app

A better way to browse. Learn more.

Learn more

auto-bunny-hop-item/addons/amxmodx/scripting/include/olds_autobhop.inc

olds_autobhop.inc
34 lines · 1 KB · Pawn include
Raw
/*
 * Auto Bunny Hop Item natives and forward (olds.ro), GPL-3.0-or-later.
 */
#if defined _olds_autobhop_included
    #endinput
#endif
#define _olds_autobhop_included

#pragma reqlib olds_autobhop

/**
 * Buys the item for a player, as the Base Builder shop's extra item does:
 * checks the player, charges olds_abh_cost points through the
 * olds_abh_charge forward and sets the item.
 *
 * @return          1 when bought, 0 when refused (the player is told why)
 */
native olds_abh_buy(id);

/** Gives the item without points (admin tools, rewards). 1 on success. */
native olds_abh_give(id);

/** Takes the item away. 1 if the player had it. */
native olds_abh_take(id);

/** 1 if the player has the item now. */
native olds_abh_has(id);

/**
 * The points system charges a purchase. Take cost points from the player and
 * return PLUGIN_HANDLED; return PLUGIN_CONTINUE when the player cannot pay.
 * With no points plugin answering, purchases are refused.
 */
forward olds_abh_charge(id, cost);

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.