Skip to content

Show name for admin cmds #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
2 changes: 2 additions & 0 deletions cstrike/addons/amxmodx/data/lang/mapmanager.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[en]
MAPM_VOTE_WILL_BEGIN = The voting will begin in next round.
MAPM_START_VOTE = %s^1 started voting.
MAPM_CANCEL_VOTE = %s^1 canceled voting.
MAPM_TIME_TO_END = Until map end left
MAPM_TIMELEFT_OR = or
Expand Down Expand Up @@ -102,6 +103,7 @@ MAPM_FORCE_VOTE_BY_ONLINE = Wymuszone głosowanie w sprawie zmiany mapy. Obecna

[ru]
MAPM_VOTE_WILL_BEGIN = Голосование начнется в следующем раунде.
MAPM_START_VOTE = %s^1 запустил голосование.
MAPM_CANCEL_VOTE = %s^1 отменил голосование.
MAPM_TIME_TO_END = До конца карты осталось
MAPM_TIMELEFT_OR = либо
Expand Down
8 changes: 6 additions & 2 deletions cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ public concmd_startvote(id, level, cid)
}

new name[32]; get_user_name(id, name, charsmax(name));
client_print_color(0, id, "%s^3 %L", g_sPrefix, LANG_PLAYER, "MAPM_START_VOTE", id ? name : "Server");

log_amx("%s started vote", id ? name : "Server");

planning_vote(VOTE_BY_CMD);

return PLUGIN_HANDLED;
Expand All @@ -262,8 +264,10 @@ public concmd_stopvote(id, level, cid)
}

new name[32]; get_user_name(id, name, charsmax(name));
client_print_color(0, id, "%s^3 %L", g_sPrefix, LANG_PLAYER, "MAPM_CANCEL_VOTE", id ? name : "Server");

log_amx("%s stopped vote", id ? name : "Server");

mapm_stop_vote();

if(mapm_get_vote_type() == VOTE_BY_SCHEDULER_SECOND) {
Expand Down