AMXX-BG.INFO zp50_flashlight.inc Raw include

zp50_flashlight.inc

Original include source with line numbers.

Back Download .inc
1 #if defined _zp50_flashlight_included
2 #endinput
3 #endif
4 #define _zp50_flashlight_included
5
6 #include <zp50_core>
7
8 #if AMXX_VERSION_NUM >= 175
9 #pragma reqlib zp50_flashlight
10 #if !defined AMXMODX_NOAUTOLOAD
11 #pragma loadlib zp50_flashlight
12 #endif
13 #else
14 #pragma library zp50_flashlight
15 #endif
16
17
18 /**
19 * Returns a player's custom flashlight batteries charge.
20 *
21 * @param id Player index.
22 * @return Charge percent (0 to 100), or -1 if custom flashlight is disabled.
23 */
24 native zp_flashlight_get_charge(id)
25
26 /**
27 * Sets a player's custom flashlight batteries charge.
28 *
29 * @param id Player index.
30 * @param value New charge percent (0 to 100).
31 */
32 native zp_flashlight_set_charge(id, charge)
33