From 42f99841aef9a2ebffa3fb53d40e1e35598fd747 Mon Sep 17 00:00:00 2001 From: d3m37r4 Date: Sat, 30 Mar 2024 14:24:35 +0700 Subject: [PATCH] Added ability to specify color of mapname for the 'MAPM_NEXTMAP' key. --- cstrike/addons/amxmodx/data/lang/mapmanager.txt | 6 +++--- cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cstrike/addons/amxmodx/data/lang/mapmanager.txt b/cstrike/addons/amxmodx/data/lang/mapmanager.txt index fc5ccdb..93eccc2 100644 --- a/cstrike/addons/amxmodx/data/lang/mapmanager.txt +++ b/cstrike/addons/amxmodx/data/lang/mapmanager.txt @@ -5,7 +5,7 @@ MAPM_TIME_TO_END = Until map end left MAPM_TIMELEFT_OR = or MAPM_NO_TIMELIMIT = Map has no time limit. MAPM_THETIME = Current time^1:^4 %s^1. -MAPM_NEXTMAP = Next map: +MAPM_NEXTMAP = Next map:^3 MAPM_NOT_SELECTED = not selected MAPM_CURRENT_MAP = Current map:^3 %s^1. MAPM_RTV_DELAY = You cant vote for rtv. Left:^3 %d:%02d^1. @@ -58,7 +58,7 @@ MAPM_TIME_TO_END = do konca mapy pozostalo MAPM_TIMELEFT_OR = lub MAPM_NO_TIMELIMIT = Brak limitu czasowego. MAPM_THETIME = Aktualna godzina^1:^4 %s^1. -MAPM_NEXTMAP = Nastepna mapa: +MAPM_NEXTMAP = Nastepna mapa:^3 MAPM_NOT_SELECTED = nie wybrano MAPM_CURRENT_MAP = Aktualna mapa:^3 %s^1. MAPM_RTV_DELAY = Nie mozna glosowac na zmiane mapy. Pozostalo:^3 %d:%02d^1. @@ -111,7 +111,7 @@ MAPM_TIME_TO_END = До конца карты осталось MAPM_TIMELEFT_OR = либо MAPM_NO_TIMELIMIT = Карта не ограничена по времени. MAPM_THETIME = Текущее время^1:^4 %s^1. -MAPM_NEXTMAP = Следующая карта: +MAPM_NEXTMAP = Следующая карта:^3 MAPM_NOT_SELECTED = ещё не выбрана MAPM_CURRENT_MAP = Текущая карта:^3 %s^1. MAPM_RTV_DELAY = Вы не можете голосовать за досрочную смену карты. Осталось:^3 %d:%02d^1. diff --git a/cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma b/cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma index 40cae94..eeca18d 100644 --- a/cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma +++ b/cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma @@ -391,7 +391,7 @@ public event_newround() client_print_color(0, print_team_default, "%s^1 %L", g_sPrefix, LANG_PLAYER, "MAPM_FINAL_ROUND"); } else { new nextmap[MAPNAME_LENGTH]; get_string(NEXTMAP, nextmap, charsmax(nextmap)); - client_print_color(0, print_team_default, "%s^1 %L^3 %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", nextmap); + client_print_color(0, print_team_default, "%s^1 %L %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", nextmap); intermission(); } } @@ -615,7 +615,7 @@ public mapm_vote_finished(const map[], type, total_votes) if(!total_votes) { client_print_color(0, print_team_default, "%s^1 %L %L", g_sPrefix, LANG_PLAYER, "MAPM_NOBODY_VOTE", LANG_PLAYER, "MAPM_NEXTMAP_BY_VOTE", map); } else { - client_print_color(0, print_team_default, "%s^1 %L^3 %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", map); + client_print_color(0, print_team_default, "%s^1 %L %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", map); } set_pcvar_string(g_pCvars[NEXTMAP], map);