Skip to content

Commit

Permalink
Add chat notification for votegag initiation
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Nov 13, 2023
1 parent fea4441 commit 30558cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cstrike/addons/amxmodx/scripting/CA_Addon_VoteGag.sma
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const IMMUNITY_FLAGS = ADMIN_IMMUNITY; // Иммунитет к функция
#define MSG_MENU_BACK "\rНазад"
#define MSG_MENU_EXIT "\rВыход"

#define MSG_VOTE_START "^1[^4%s^1] ^3%n^4 Запустил голосование за ^1gag ^4игрока ^3%n^1!"
#define MSG_VOTE_EXISTS "^1[^4%s^1] ^4Голосование за ^1gag ^4игрока ^3уже запужено!"
#define MSG_VOTE_BLOCK "^1[^4%s^1] ^4Голосование будет доступно через ^3%d сек."
#define MSG_VOTING_FAIL "^1[^4%s^1] ^4Голосование завершилось ^3неудачно^4. Недостаточно голосов ^1[^3%d^1/^3%d^1]"
Expand Down Expand Up @@ -140,6 +141,8 @@ public players_handler(id, menu, item)
formatex(szTitle, charsmax(szTitle), MSG_VMENU_TITLE, szName);
menu_setprop(g_VotingMenu, MPROP_TITLE, szTitle);

ChatColor(0, g_iVotingIndex, MSG_VOTE_START, PREFIX, id, g_iVotingIndex);

for(new i; i < g_iPnum; i++)
{
if(g_arrPlayers[i] == g_iVotingIndex)
Expand Down

0 comments on commit 30558cb

Please sign in to comment.