map_manager_nomination.inc
Original include source with line numbers.
| 1 | #if defined _map_manager_nom_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _map_manager_nom_included |
| 5 | |
| 6 | #if AMXX_VERSION_NUM >= 175 |
| 7 | #pragma reqlib map_manager_nomination |
| 8 | #if !defined AMXMODX_NOAUTOLOAD |
| 9 | #pragma loadlib map_manager_nomination |
| 10 | #endif |
| 11 | #else |
| 12 | #pragma library map_manager_nomination |
| 13 | #endif |
| 14 | |
| 15 | /** |
| 16 | * Returns true if nomination ignore vote. |
| 17 | * |
| 18 | * @return true/false |
| 19 | */ |
| 20 | native bool:is_nomination_ignore_vote(); |
| 21 | |
| 22 | /** |
| 23 | * Set ignore or not adding nominated maps to vote. |
| 24 | * |
| 25 | * @param ignore Yes or not |
| 26 | * |
| 27 | * @noreturn |
| 28 | */ |
| 29 | native map_nomination_set_ignore(bool:ignore); |
| 30 | |
| 31 | /** |
| 32 | * Called when player want to nominate map. |
| 33 | * |
| 34 | * @param id Player index |
| 35 | * @param map Map which player want to nominate |
| 36 | * |
| 37 | * @return NOMINATION_ALLOWED to allow nomination |
| 38 | * NOMINATION_BLOCKED to block nomination |
| 39 | */ |
| 40 | forward mapm_can_be_nominated(id, map[]); |
| 41 | |