zp_flashlight_get_charge

Returns a player's custom flashlight batteries charge.

Syntax

native zp_flashlight_get_charge(id) /** * Sets a player's custom flashlight batteries charge. * * @param id Player index. * @param value New charge percent (0 to 100). */ native zp_flashlight_set_charge(id, charge)

Usage

id Player index.

Return

Charge — percent (0 to 100), or -1 if custom flashlight is disabled.

Defined in zp50_flashlight.inc at line 24 . This documentation was automatically generated from source.