zp_core_cure

Turns a player into a human.

Syntax

native zp_core_cure(id, attacker = 0) /** * Forces a player to become a zombie/human. * * Note: use this only when previous checks need to be skipped. * * @param id Player index to be infected/cured. * @return True on success, false otherwise. */ 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)

Usage

id Player index to be cured.
attacker Player who triggered the cure. (optional)

Return

True — on success, false otherwise.

Defined in zp50_core.inc at line 79 . This documentation was automatically generated from source.