zp_items_show_menu

Shows menu with available extra items for player.

Syntax

native zp_items_show_menu(id) /** * Forces a player to buy an extra item. * * @param id Player index. * @param itemid A valid extra item ID. * @param ignorecost If set, item's cost won't be deduced from player. * @return True on success, false otherwise. */ native zp_items_force_buy(id, itemid, ignorecost = false) /** * Appends text to an item being displayed on the extra items menu. * Use this on the item select pre forward. * * @param text Additional text to display. */ native zp_items_menu_text_add(const text[]) /** * Called when determining whether an item should be available to a player. * * Possible return values are: * - ZP_ITEM_AVAILABLE (show in menu, allow selection) * - ZP_ITEM_NOT_AVAILABLE (show in menu, don't allow selection) * - ZP_ITEM_DONT_SHOW (don't show in menu, don't allow selection) * * @param id Player index. * @param itemid Internal item ID.

Usage

id Player index.
Defined in zp50_items.inc at line 72 . This documentation was automatically generated from source.