50 |
#include <amxmisc> |
#include <amxmisc> |
51 |
|
|
52 |
new const PLUGIN[] = "DeagsMapManager"; |
new const PLUGIN[] = "DeagsMapManager"; |
53 |
new const VERSION[] = "3.22"; |
new const VERSION[] = "3.22SVN"; |
54 |
new const AUTHOR[] = "Deags/AMXX Community"; |
new const AUTHOR[] = "Deags/AMXX Community"; |
55 |
|
|
56 |
// Comment out the following line to disable the dedicated log file |
// Comment out the following line to disable the dedicated log file |
60 |
#define ADMIN_DMAP ADMIN_LEVEL_A |
#define ADMIN_DMAP ADMIN_LEVEL_A |
61 |
#define ADMIN_SUPER_DMAP ADMIN_LEVEL_F |
#define ADMIN_SUPER_DMAP ADMIN_LEVEL_F |
62 |
|
|
63 |
|
new const DMAP_MENU_TITLE[] = "DMAP_MENU_TITLE"; |
64 |
|
|
65 |
#define DMAP_VOTE_TIME 20 // Total time (in seconds) from vote start to checking votes |
#define DMAP_VOTE_TIME 20 // Total time (in seconds) from vote start to checking votes |
66 |
|
|
67 |
#define DMAP_TASKID_VTR 10000 // Vote Time Remaining |
#define DMAP_TASKID_VTR 10000 // Vote Time Remaining |
1527 |
if (bFirstTime == true) { |
if (bFirstTime == true) { |
1528 |
g_VoteTimeRemaining = DMAP_VOTE_TIME; |
g_VoteTimeRemaining = DMAP_VOTE_TIME; |
1529 |
set_task(float(g_VoteTimeRemaining), "check_votes"); |
set_task(float(g_VoteTimeRemaining), "check_votes"); |
1530 |
show_menu(0, mkeys, menu, --g_VoteTimeRemaining); |
show_menu(0, mkeys, menu, --g_VoteTimeRemaining, DMAP_MENU_TITLE); |
1531 |
set_task(1.0, "update_vote_time_remaining", DMAP_TASKID_VTR, "", 0, "a", g_VoteTimeRemaining); |
set_task(1.0, "update_vote_time_remaining", DMAP_TASKID_VTR, "", 0, "a", g_VoteTimeRemaining); |
1532 |
if (bIsCstrike) { |
if (bIsCstrike) { |
1533 |
client_print(0, print_chat, "%L", LANG_PLAYER, "DMAP_TIME_TO_CHOOSE"); |
client_print(0, print_chat, "%L", LANG_PLAYER, "DMAP_TIME_TO_CHOOSE"); |
1544 |
for (new iPlayer = 0; iPlayer < iNum; iPlayer++) { |
for (new iPlayer = 0; iPlayer < iNum; iPlayer++) { |
1545 |
id = players[iPlayer]; |
id = players[iPlayer]; |
1546 |
if (g_AlreadyVoted[id] == false) { |
if (g_AlreadyVoted[id] == false) { |
1547 |
show_menu(players[iPlayer], mkeys, menu, g_VoteTimeRemaining); |
show_menu(players[iPlayer], mkeys, menu, g_VoteTimeRemaining, DMAP_MENU_TITLE); |
1548 |
} |
} |
1549 |
} |
} |
1550 |
|
|
3062 |
public plugin_init() { |
public plugin_init() { |
3063 |
|
|
3064 |
register_plugin(PLUGIN, VERSION, AUTHOR); |
register_plugin(PLUGIN, VERSION, AUTHOR); |
3065 |
|
register_dictionary("common.txt"); |
3066 |
register_dictionary("deagsmapmanager.txt"); |
register_dictionary("deagsmapmanager.txt"); |
3067 |
|
|
3068 |
get_configsdir(custompath, 49); |
get_configsdir(custompath, 49); |
3153 |
set_defaults(-1); |
set_defaults(-1); |
3154 |
} |
} |
3155 |
atstart = 0; |
atstart = 0; |
3156 |
register_menucmd(register_menuid("Choose the next map:"), (-1 ^ (-1 << (maps_to_select + 2))), "vote_count"); |
register_menucmd(register_menuid(DMAP_MENU_TITLE), (-1 ^ (-1 << (maps_to_select + 2))), "vote_count"); |
3157 |
} |
} |