Skip to content

Commit

Permalink
Added ability to specify color of mapname for the 'MAPM_NEXTMAP' key.
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m37r4 committed Mar 30, 2024
1 parent 6124ca1 commit 090bd06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cstrike/addons/amxmodx/data/lang/mapmanager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 %s^1.
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.
Expand Down Expand Up @@ -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 %s^1.
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.
Expand Down Expand Up @@ -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 %s^1.
MAPM_NOT_SELECTED = ещё не выбрана
MAPM_CURRENT_MAP = Текущая карта:^3 %s^1.
MAPM_RTV_DELAY = Вы не можете голосовать за досрочную смену карты. Осталось:^3 %d:%02d^1.
Expand Down
4 changes: 2 additions & 2 deletions cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma
Original file line number Diff line number Diff line change
Expand Up @@ -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", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", nextmap);
intermission();
}
}
Expand Down Expand Up @@ -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", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", map);
}

set_pcvar_string(g_pCvars[NEXTMAP], map);
Expand Down

0 comments on commit 090bd06

Please sign in to comment.