zp50_admin_commands.inc
Original include source with line numbers.
| 1 | #if defined _zp50_admin_commands_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _zp50_admin_commands_included |
| 5 | |
| 6 | #include <zp50_core> |
| 7 | |
| 8 | #if AMXX_VERSION_NUM >= 175 |
| 9 | #pragma reqlib zp50_admin_commands |
| 10 | #if !defined AMXMODX_NOAUTOLOAD |
| 11 | #pragma loadlib zp50_admin_commands |
| 12 | #endif |
| 13 | #else |
| 14 | #pragma library zp50_admin_commands |
| 15 | #endif |
| 16 | |
| 17 | |
| 18 | /** |
| 19 | * Manually executes admin command: zp_zombie. |
| 20 | * |
| 21 | * @param id Admin player index. |
| 22 | * @param player Target player index. |
| 23 | * @return True on success, false otherwise. |
| 24 | */ |
| 25 | native zp_admin_commands_zombie(id, player) |
| 26 | |
| 27 | /** |
| 28 | * Manually executes admin command: zp_human. |
| 29 | * |
| 30 | * @param id Admin player index. |
| 31 | * @param player Target player index. |
| 32 | * @return True on success, false otherwise. |
| 33 | */ |
| 34 | native zp_admin_commands_human(id, player) |
| 35 | |
| 36 | /** |
| 37 | * Manually executes admin command: zp_nemesis. |
| 38 | * |
| 39 | * @param id Admin player index. |
| 40 | * @param player Target player index. |
| 41 | * @return True on success, false otherwise. |
| 42 | */ |
| 43 | native zp_admin_commands_nemesis(id, player) |
| 44 | |
| 45 | /** |
| 46 | * Manually executes admin command: zp_survivor. |
| 47 | * |
| 48 | * @param id Admin player index. |
| 49 | * @param player Target player index. |
| 50 | * @return True on success, false otherwise. |
| 51 | */ |
| 52 | native zp_admin_commands_survivor(id, player) |
| 53 | |
| 54 | /** |
| 55 | * Manually executes admin command: zp_respawn. |
| 56 | * |
| 57 | * @param id Admin player index. |
| 58 | * @param player Target player index. |
| 59 | * @return True on success, false otherwise. |
| 60 | */ |
| 61 | native zp_admin_commands_respawn(id, player) |
| 62 | |
| 63 | /** |
| 64 | * Manually executes admin command: zp_start_game_mode. |
| 65 | * |
| 66 | * @param id Admin player index. |
| 67 | * @param game_mode_id A valid game mode ID. |
| 68 | * @return True on success, false otherwise. |
| 69 | */ |
| 70 | native zp_admin_commands_start_mode(id, game_mode_id) |
| 71 | |