zp_core_respawn_as_zombie

Sets whether the player will be respawned as zombie or human.

Syntax

native zp_core_respawn_as_zombie(id, zombie = true) /** * Called when a player gets infected. * * @param id Player index who was infected. * @param attacker Player who triggered the infection. * (0 if not available, id = attacker if he infected himself) */ 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) */

Usage

id Player index.
zombie True to respawn as zombie, false otherwise.
Defined in zp50_core.inc at line 98 . This documentation was automatically generated from source.