zp_extra_item_selected

Called when a player buys an extra item from the ZP menu. Note: You can now return ZP_PLUGIN_HANDLED in your plugin to block the purchase and the player will be automatically refunded.

Syntax

forward zp_extra_item_selected(id, itemid) // New Forwards // Exec When Open the Extra Itens menu // Use the ZP_PLUGIN_HANDLED for block option (Like ZP 5.0) // Use the ZP_PLUGIN_SUPERCEDE for block showing item in menu forward zp_extra_item_selected_pre(id, itemid) // Use the ZP_PLUGIN_HANDLED for block user frozing forward zp_user_frozen_pre(id) forward zp_user_frozen_post(id) // Use the ZP_PLUGIN_HANDLED for block user burning forward zp_user_burn_pre(id) forward zp_user_burn_post(id) /** * Called when a player gets unfrozen (frostnades). * * @param id Player index. */ forward zp_user_unfrozen(id) /** * Called when a player becomes the last zombie. * * Note: This is called for the first zombie too. *

Usage

id Player index of purchaser.
itemid Internal extra item ID.
Defined in zombie_plague_special.inc at line 870 . This documentation was automatically generated from source.