native

zp_infect_user

Syntax

native zp_infect_user(id, infector = 0, silent = 0, rewards = 0);

Description

Forces a player to become a zombie.

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.

Note

Unavailable for last default/special human.

Return

True on success, false otherwise.