zp_core_force_infect
Forces a player to become a zombie/human. Note: use this only when previous checks need to be skipped.
Syntax
native zp_core_force_infect(id) native zp_core_force_cure(id) /** * Sets whether the player will be respawned as zombie or human. * * @param id Player index. * @param zombie True to respawn as zombie, false otherwise. */ 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)
Usage
| id | Player index to be infected/cured. |
Return
True — on success, false otherwise.
Defined in
zp50_core.inc
at line 89
.
This documentation was automatically generated from source.