zp50_ammopacks.inc
Original include source with line numbers.
| 1 | #if defined _zp50_ammopacks_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _zp50_ammopacks_included |
| 5 | |
| 6 | #include <zp50_core> |
| 7 | |
| 8 | #if AMXX_VERSION_NUM >= 175 |
| 9 | #pragma reqlib zp50_ammopacks |
| 10 | #if !defined AMXMODX_NOAUTOLOAD |
| 11 | #pragma loadlib zp50_ammopacks |
| 12 | #endif |
| 13 | #else |
| 14 | #pragma library zp50_ammopacks |
| 15 | #endif |
| 16 | |
| 17 | |
| 18 | /** |
| 19 | * Returns a player's ammo pack count. |
| 20 | * |
| 21 | * @param id Player index. |
| 22 | * @return Number of ammo packs owned. |
| 23 | */ |
| 24 | native zp_ammopacks_get(id) |
| 25 | |
| 26 | /** |
| 27 | * Sets a player's ammo pack count. |
| 28 | * |
| 29 | * @param id Player index. |
| 30 | * @param amount New quantity of ammo packs owned. |
| 31 | */ |
| 32 | native zp_ammopacks_set(id, amount) |
| 33 | |