Skip to content

Commit

Permalink
lang: allow change color for MAPM_NEXTMAP (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m37r4 authored Apr 20, 2024
1 parent ea16f0d commit 6662387
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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
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
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
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_informer.sma
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cstrike/addons/amxmodx/scripting/map_manager_rtv.sma
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
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 %s^1.", 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 %s^1.", g_sPrefix, LANG_PLAYER, "MAPM_NEXTMAP", map);
}

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

0 comments on commit 6662387

Please sign in to comment.