Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cstrike/addons/amxmodx/data/lang/mapmanager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ 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.
MAPM_RTV_VOTED = %s^1 has voted to change map. Left:^3 %d^1
MAPM_RTV_VOTED_LAST = %s^1 has voted to change map. All votes for an early map change are in
MAPM_RTV_START_VOTE = Starting early voting for next map.
MAPM_START_VOTE_NEW_ROUND = Voting will start in next round.
MAPM_RTV_ALREADY_VOTED = You have already rocked the vote. Left:^3 %d^1
MAPM_NOM_NOT_AVAILABLE_MAP = This map is not available for nomination.
MAPM_NOM_REMOVE_NOM = %s^1 has denominated map^3 %s^1.
Expand Down Expand Up @@ -110,6 +113,9 @@ MAPM_NOT_SELECTED = ещё не выбрана
MAPM_CURRENT_MAP = Текущая карта:^3 %s^1.
MAPM_RTV_DELAY = Вы не можете голосовать за досрочную смену карты. Осталось:^3 %d:%02d^1.
MAPM_RTV_VOTED = %s^1 проголосовал за смену карты. Осталось:^3 %d^1
MAPM_RTV_VOTED_LAST = %s^1 проголосовал за смену карты. Все голоса за досрочную смену набраны
MAPM_RTV_START_VOTE = Начинаем досрочное голосование.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лишние ланги. Нет заглушек для польского.

MAPM_START_VOTE_NEW_ROUND = Голосование начнется в следующем раунде.
MAPM_RTV_ALREADY_VOTED = Вы уже голосовали. Осталось:^3 %d^1
MAPM_NOM_NOT_AVAILABLE_MAP = Эта карта недоступна для номинации.
MAPM_NOM_REMOVE_NOM = %s^1 убрал номинацию с карты^3 %s^1.
Expand Down
9 changes: 7 additions & 2 deletions cstrike/addons/amxmodx/scripting/map_manager_rtv.sma
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,18 @@ public clcmd_rtv(id)

if(need_votes <= 0) {
map_scheduler_start_vote(VOTE_BY_RTV);
return PLUGIN_HANDLED;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По мне лучше здесь добавить сообщение.

}

if(!g_bVoted[id]) {
g_bVoted[id] = true;
new name[32]; get_user_name(id, name, charsmax(name));
client_print_color(0, print_team_default, "%s^3 %L.", g_sPrefix, LANG_PLAYER, "MAPM_RTV_VOTED", name, need_votes);

if(need_votes <= 0) {
client_print_color(0, id, "%s^3 %L.", g_sPrefix, LANG_PLAYER, "MAPM_RTV_VOTED_LAST", name);
}
else {
client_print_color(0, id, "%s^3 %L.", g_sPrefix, LANG_PLAYER, "MAPM_RTV_VOTED", name, need_votes);
}
} else {
client_print_color(id, print_team_default, "%s^1 %L.", g_sPrefix, id, "MAPM_RTV_ALREADY_VOTED", need_votes);
}
Expand Down