native

zpn_set_user_zombie

Syntax

native bool:zpn_set_user_zombie(const this, const attacker, bool:set_first = false);

Description

Infects a client and applies the selected zombie class.

Parameters

this Client index to infect
attacker Infector client index, or 0 if there is no direct infector
set_first Whether the client should be marked as the first zombie

Note

This calls zpn_user_infect_attempt(), zpn_user_infected_pre(), and
zpn_user_infected_post() when the infection is not blocked.

Return

true on successful infection, false if the client is not
alive or the infection was blocked