map_manager_scheduler.inc
Original include source with line numbers.
| 1 | #if defined _map_manager_scheduler_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _map_manager_scheduler_included |
| 5 | |
| 6 | #if AMXX_VERSION_NUM >= 175 |
| 7 | #pragma reqlib map_manager_scheduler |
| 8 | #if !defined AMXMODX_NOAUTOLOAD |
| 9 | #pragma loadlib map_manager_scheduler |
| 10 | #endif |
| 11 | #else |
| 12 | #pragma library map_manager_scheduler |
| 13 | #endif |
| 14 | |
| 15 | enum IgnoreFlags (<<=1) { |
| 16 | IGNORE_DISABLED = 0, |
| 17 | IGNORE_TIMER_CHECK = 1 << 0, |
| 18 | IGNORE_ROUND_CHECK, |
| 19 | IGNORE_FRAGS_CHECK |
| 20 | }; |
| 21 | |
| 22 | /** |
| 23 | * Get ignore flags for starting vote. |
| 24 | * |
| 25 | * @return Ignore flags |
| 26 | */ |
| 27 | native IgnoreFlags:map_scheduler_get_ignore_check(); |
| 28 | |
| 29 | /** |
| 30 | * Set ignore flags for starting vote. |
| 31 | * |
| 32 | * @param flags Flags from IgnoreFlags enum |
| 33 | * |
| 34 | * @noreturn |
| 35 | */ |
| 36 | native map_scheduler_set_ignore_check(IgnoreFlags:flags); |
| 37 | |
| 38 | /** |
| 39 | * Start vote by scheduler, work with own cvars. |
| 40 | * |
| 41 | * @param type Type of vote, used const VOTE_BY_* |
| 42 | * |
| 43 | * @noreturn |
| 44 | */ |
| 45 | native map_scheduler_start_vote(type); |
| 46 | |
| 47 | /** |
| 48 | * Extend current map time. |
| 49 | * |
| 50 | * @param count Extend time param, bonus time = count * cvarnum(extend_time) |
| 51 | * |
| 52 | * @noreturn |
| 53 | */ |
| 54 | native map_scheduler_extend_map(count = 1); |
| 55 | |
| 56 | /** |
| 57 | * Returns true if vote will in next round. |
| 58 | * |
| 59 | * @return true/false |
| 60 | */ |
| 61 | native bool:is_vote_will_in_next_round(); |
| 62 | |
| 63 | /** |
| 64 | * Returns true if now is last round. |
| 65 | * |
| 66 | * @return true/false |
| 67 | */ |
| 68 | native bool:is_last_round(); |
| 69 | |