zp_user_infected_pre

Called when a player gets infected.

Syntax

forward zp_user_infected_pre(id, infector, classid) forward zp_user_infected_post(id, infector, classid) /** * Called when a player turns back to human. * * @param id Player index who was cured. * @param survivor Whether the player was turned into a survivor. */ forward zp_user_humanized_pre(id, classid) forward zp_user_humanized_post(id, classid) /** * 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. */ forward zp_user_infect_attempt(id, infector, classid) forward zp_user_humanize_attempt(id, classid) /** * 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 */

Usage

id Player index who was infected.
infector Player index who infected him (if applicable).
classid
Defined in zombie_plague_special.inc at line 811 . This documentation was automatically generated from source.