native
zp_infect_user
Syntax
native zp_infect_user(id, infector = 0, silent = 0, rewards = 0)
Description
Forces a player to become a zombie.
Note: Unavailable for last human/survivor.
Parameters
| 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.