Functions

zp50_items.inc

zombie plague 5.0

Function Type Description
zp_fw_items_select_post forward Called after a player selected an item from the extra items menu.
zp_fw_items_select_pre forward 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)
zp_items_force_buy native Forces a player to buy an extra item.
zp_items_get_cost native Returns an item's cost.
zp_items_get_id native Returns an item's ID.
zp_items_get_name native Returns an item's name.
zp_items_get_real_name native Returns an item's real name (used when registering the item).
zp_items_menu_text_add native Appends text to an item being displayed on the extra items menu.
Use this on the item select pre forward.
zp_items_register native Registers a custom item which will be added to the extra items menu of ZP.

Note: The returned item ID can be later used to catch item
selection events for the zp_item_select_() forwards.
zp_items_show_menu native Shows menu with available extra items for player.