customshop
Browse all symbols documented inside this include file.
Constants
| Name | Description |
|---|---|
| _customshop_included | — |
| DONT_BUY | Used in cshop_item_selected() to prevent buying an item |
| BUY_ITEM | Used in cshop_item_selected() to allow buying an item |
| SHOP_CLOSE | Used in cshop_menu_opened() to prevent opening the shop |
| SHOP_OPEN | Used in cshop_menu_opened() to allow opening the shop |
| additem | Typically used for registering an item variable, nothing fancy |
| cshopRegisterItem | = cshop_register_item |
| cshopHasItem | = cshop_has_item |
| cshopPointsEnabled | = cshop_points_enabled |
| cshopGetLimit | = cshop_get_limit |
| cshopRemoveItem | = cshop_remove_item |
| cshopItemBought | = cshop_item_selected |
| cshopItemRemoved | = cshop_item_removed |
| cshopErrorSound | = cshop_error_sound |
| cshopTotalItems | = cshop_total_items |
| cshopGivePoints | = cshop_give_points |
| cshopGetPoints | = cshop_get_points |
Functions
| Name | Description |
|---|---|
| cshop_register_item | Registers a new item. |
| cshop_has_item | Checks whether a player has an item or not. |
| cshop_points_enabled | Checks whether the points system is enabled. |
| cshop_get_limit | Checks player's item limit. |
| cshop_remove_item | Removes a player's item. |
| cshop_error_sound | Plays the error sound on a player. |
| cshop_total_items | Gets the total number of loaded items. |
| cshop_give_points | Give/take points to/from a player. |
| cshop_get_points | Return player points. |
| cshop_get_prefix | Gets the plugin prefix. |
| cshop_open | Tries to open the shop menu. |
| cshop_set_int | Registers an integer setting for a specific item. |
| cshop_set_float | Registers a float setting for a specific item. |
| cshop_set_string | Registers a string setting for a specific item. |
| cshop_get_int | Returns an integer value from a specific item's setting. |
| cshop_get_float | Returns a float value from a specific item's setting. |
| cshop_get_string | Returns a string value from a specific item's setting. |
| cshop_find_item_by_id | Returns item's unique id. |
| cshop_get_item_data | Returns item data. |
Forwards
| Name | Description |
|---|---|
| cshop_item_selected | Called right before an item is purchased. |
| cshop_item_removed | Called when an item is removed. |
| cshop_menu_opened | Called right before the menu is opened. |
| cshop_set_price | Called before a menu price is set. |
Enums
| Name | Description |
|---|---|
| _ | Data types for cshop_get_item_data() |