From 4cf342288194de7186d2df428fcf4365830f179b 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_informer.sma | 4 ++-- cstrike/addons/amxmodx/scripting/map_manager_rtv.sma | 2 +- cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma | 4 ++-- 4 files changed, 8 insertions(+), 8 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_informer.sma b/cstrike/addons/amxmodx/scripting/map_manager_informer.sma index b00cbf1..7098a67 100644 --- a/cstrike/addons/amxmodx/scripting/map_manager_informer.sma +++ b/cstrike/addons/amxmodx/scripting/map_manager_informer.sma @@ -104,9 +104,9 @@ public clcmd_nextmap(id) { if(is_vote_finished()) { new map[MAPNAME_LENGTH]; get_pcvar_string(g_pCvars[NEXTMAP], map, charsmax(map)); - client_print_color(0, id, "%s^1 %L ^3%s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", map); + client_print_color(0, id, "%s^1 %L %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", map); } else { - client_print_color(0, id, "%s^1 %L ^3%L^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", LANG_PLAYER, "MAPM_NOT_SELECTED"); + client_print_color(0, id, "%s^1 %L %L^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", LANG_PLAYER, "MAPM_NOT_SELECTED"); } } public clcmd_currentmap(id) diff --git a/cstrike/addons/amxmodx/scripting/map_manager_rtv.sma b/cstrike/addons/amxmodx/scripting/map_manager_rtv.sma index 6e9fc8d..7ce47c5 100644 --- a/cstrike/addons/amxmodx/scripting/map_manager_rtv.sma +++ b/cstrike/addons/amxmodx/scripting/map_manager_rtv.sma @@ -82,7 +82,7 @@ public clcmd_rtv(id) return PLUGIN_HANDLED; } else if(is_vote_finished()) { - 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); + client_print_color(id, print_team_default, "%s^1 %L %L %s^1.", g_sPrefix, id, "MAPM_VOTE_ALREADY_FINISHED", id, "MAPM_NEXTMAP", g_sNextMap); return PLUGIN_HANDLED; } else if(is_vote_will_in_next_round()) { 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);