zp_items_get_cost

Returns an item's cost.

Syntax

native zp_items_get_cost(itemid) /** * Shows menu with available extra items for player. * * @param id Player index. */ 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. *

Usage

itemid A valid item ID.

Return

Item's cost.

Defined in zp50_items.inc at line 65 . This documentation was automatically generated from source.