forward
zpn_user_infect_attempt
Syntax
forward zpn_user_infect_attempt(const this, const infector, const class_id);
Description
Called before the infection pre-forward.
Parameters
| this | Client index being infected |
|---|---|
| infector | Infector client index, or 0 if there is no direct infector |
| class_id | Zombie class index selected for the infection |
Note
Return ZPN_RETURN_HANDLED or higher to block the infection before any
class data is applied.
Return
ZPN_RETURN_CONTINUE to allow the infection
ZPN_RETURN_HANDLED or higher to block it