zp_set_user_batteries

Sets a player's custom flashlight batteries charge.

Syntax

native zp_set_user_batteries(id, charge) /** * Returns whether a player has night vision. * * @param id Player index. * @return True if it has, false otherwise. */ native zp_get_user_nightvision(id) /** * Sets whether a player has night vision. * * @param id Player index. * @param set True to give, false for removing it. */ native zp_set_user_nightvision(id, set) /** * Forces a player to become a zombie. * * Note: Unavailable for last human/survivor/sniper. * * @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)

Usage

id Player index.
charge
Defined in zombie_plague_advance.inc at line 218 . This documentation was automatically generated from source.