zp_fw_core_infect

Called when a player gets infected.

Syntax

forward zp_fw_core_infect(id, attacker) forward zp_fw_core_infect_post(id, attacker) /** * Called when a player turns back to human. * * @param id Player index who was cured. * @param attacker Player who triggered the cure. * (0 if not available, id = attacker if he cured himself) */ forward zp_fw_core_cure(id, attacker) forward zp_fw_core_cure_post(id, attacker) /** * Called on a player infect/cure attempt. You can block it by * returning PLUGIN_HANDLED in your plugin. * * @param id Player index who is being infected/cured. * @param attacker Player who is triggering the infection/cure. * (0 if not available, id = attacker if he is infecting/curing himself) */ forward zp_fw_core_infect_pre(id, attacker) forward zp_fw_core_cure_pre(id, attacker) /** * Called when a player becomes the last zombie/human. * * Note: This is called for the first zombie too. * * @param id Player index.

Usage

id Player index who was infected.
attacker Player who triggered the infection.
Defined in zp50_core.inc at line 107 . This documentation was automatically generated from source.