zp_core_infect

Turns a player into a zombie.

Syntax

native zp_core_infect(id, attacker = 0) /** * Turns a player into a human. * * @param id Player index to be cured. * @param attacker Player who triggered the cure. (optional) * @return True on success, false otherwise. */ 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)

Usage

id Player index to be infected.
attacker Player who triggered the infection. (optional)

Return

True — on success, false otherwise.

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