From 30558cb8000be5efb54471c27f5a99813511dcc3 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Mon, 13 Nov 2023 15:35:36 +0300 Subject: [PATCH] Add chat notification for `votegag` initiation --- cstrike/addons/amxmodx/scripting/CA_Addon_VoteGag.sma | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cstrike/addons/amxmodx/scripting/CA_Addon_VoteGag.sma b/cstrike/addons/amxmodx/scripting/CA_Addon_VoteGag.sma index 6cce571a..b1b61e64 100644 --- a/cstrike/addons/amxmodx/scripting/CA_Addon_VoteGag.sma +++ b/cstrike/addons/amxmodx/scripting/CA_Addon_VoteGag.sma @@ -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]" @@ -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)