zp_user_infect_attempt

Called on a player infect/cure attempt. You can use this to block an infection/humanization by returning ZP_PLUGIN_HANDLED in your plugin. Note: Right now this is only available after the ZP round starts, since some situations (like blocking a first zombie's infection) are not yet handled.

Syntax

forward zp_user_infect_attempt(id, infector, nemesis) forward zp_user_humanize_attempt(id, survivor) forward zp_user_humanize_attempt(id, sniper) /** * Called when an admin selects a custom game mode from the ZP admin menu. * * Note: You should trigger the custom game mode here with out any checks * * @param gameid Internal custom game mode ID * @param id Player index who selected the game mode */ forward zp_game_mode_selected(gameid, id) /** * 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. * * @param id Player index of purchaser. * @param itemid Internal extra item ID. */ forward zp_extra_item_selected(id, itemid) /** * Called when a player gets unfrozen (frostnades). * * @param id Player index. */

Usage

id
infector
nemesis
Defined in zombie_plague_advance.inc at line 611 . This documentation was automatically generated from source.