zp_infect_user
Forces a player to become a zombie. Note: Unavailable for last human/survivor/sniper.
Syntax
native zp_infect_user(id, infector = 0, silent = 0, rewards = 0) /** * Forces a player to become a human. * * Note: Unavailable for last zombie/nemesis. * * @param id Player index to be cured. * @param silent If set, there will be no HUD messages or antidote sounds. * @return True on success, false otherwise. */ native zp_disinfect_user(id, silent = 0) /** * Forces a player to become a nemesis. * * Note: Unavailable for last human/survivor/sniper. * * @param id Player index to turn into nemesis. * @return True on success, false otherwise. */ native zp_make_user_nemesis(id) /** * Forces a player to become a survivor. * * Note: Unavailable for last zombie/nemesis. * * @param id Player index to turn into survivor. * @return True on success, false otherwise.
Usage
| id | Player index to be infected. |
| infector | Player index who infected him (optional). |
| silent | If set, there will be no HUD messages or infection sounds. |
| rewards | Whether to show DeathMsg and reward frags, hp, and ammo packs to infector. |
Return
True — on success, false otherwise.
Defined in
zombieplaguenew1.3.inc
at line 195
.
This documentation was automatically generated from source.