zp_set_user_nightvision
Sets whether a player has night vision.
Syntax
native zp_set_user_nightvision(id, set) /** * Forces a player to become a zombie. * * Note: Unavailable for last human/survivor. * * @param id Player index to be infected. * @param infector Player index who infected him (optional). * @param silent If set, there will be no HUD messages or infection sounds. * @param rewards Whether to show DeathMsg and reward frags, hp, and ammo packs to infector. * @return True on success, false otherwise. */ 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.
Usage
| id | Player index. |
| set | True to give, false for removing it. |
Defined in
zombieplague.inc
at line 217
.
This documentation was automatically generated from source.