zp_fw_core_infect_pre
Called on a player infect/cure attempt. You can block it by returning PLUGIN_HANDLED in your plugin.
Syntax
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. */ forward zp_fw_core_last_zombie(id) forward zp_fw_core_last_human(id) /** * Called when a player spawns, before applying human/zombie attributes to him. * * @param id Player index. */ forward zp_fw_core_spawn_post(id)
Usage
| id | Player index who is being infected/cured. |
| attacker | Player who is triggering the infection/cure. |
Defined in
zp50_core.inc
at line 128
.
This documentation was automatically generated from source.