@@ -42,6 +42,8 @@ new g_iVotes;
4242
4343new g_sPrefix[48 ];
4444
45+ new g_sNextMap[MAPNAME_LENGTH];
46+
4547public plugin_init ()
4648{
4749 register_plugin (PLUGIN, VERSION + VERSION_HASH, AUTHOR);
@@ -75,8 +77,16 @@ public client_disconnected(id)
7577}
7678public clcmd_rtv (id)
7779{
78- if (is_vote_started () || is_vote_finished () || is_vote_will_in_next_round ()) {
79- // add msg?
80+ if (is_vote_started ()) {
81+ client_print_color (id, print_team_default, " %s ^1 % L" , g_sPrefix, id, " MAPM_VOTE_ALREADY_STARTED" );
82+ return PLUGIN_HANDLED;
83+ }
84+ else if (is_vote_finished ()) {
85+ client_print_color (id, print_team_default, " %s ^1 % L % L^3 %s ." , g_sPrefix, id, " MAPM_VOTE_ALREADY_FINISHED" , id, " MAPM_NEXTMAP" , g_sNextMap);
86+ return PLUGIN_HANDLED;
87+ }
88+ else if (is_vote_will_in_next_round ()) {
89+ client_print_color (id, print_team_default, " %s ^1 % L" , g_sPrefix, id, " MAPM_VOTE_WILL_BEGIN" );
8090 return PLUGIN_HANDLED;
8191 }
8292
@@ -130,6 +140,8 @@ public mapm_vote_started(type)
130140}
131141public mapm_vote_finished (const map[], type, total_votes)
132142{
143+ copy (g_sNextMap, charsmax (g_sNextMap), map);
144+
133145 if (type == VOTE_BY_RTV && get_num (CHANGE_TYPE) && get_num (CHANGE_AFTER_VOTE)) {
134146 client_print_color (0 , print_team_default, " %s ^1 % L^1 % L." , g_sPrefix, LANG_PLAYER, " MAPM_MAP_CHANGE" , get_num (CHATTIME), LANG_PLAYER, " MAPM_SECONDS" );
135147 intermission ();
0 commit comments