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