Skip to content

Commit 1f649e4

Browse files
authored
Add chat notification for votegag initiation (#308)
* Add chat notification for `votegag` initiation * Update version to `1.0.1-alpha`
1 parent fea4441 commit 1f649e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cstrike/addons/amxmodx/scripting/CA_Addon_VoteGag.sma

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const IMMUNITY_FLAGS = ADMIN_IMMUNITY; // Иммунитет к функция
2222
#define MSG_MENU_BACK "\rНазад"
2323
#define MSG_MENU_EXIT "\rВыход"
2424

25+
#define MSG_VOTE_START "^1[^4%s^1] ^3%n^4 Запустил голосование за ^1gag ^4игрока ^3%n^1!"
2526
#define MSG_VOTE_EXISTS "^1[^4%s^1] ^4Голосование за ^1gag ^4игрока ^3уже запужено!"
2627
#define MSG_VOTE_BLOCK "^1[^4%s^1] ^4Голосование будет доступно через ^3%d сек."
2728
#define MSG_VOTING_FAIL "^1[^4%s^1] ^4Голосование завершилось ^3неудачно^4. Недостаточно голосов ^1[^3%d^1/^3%d^1]"
@@ -43,7 +44,7 @@ new bool:g_bPlayerVoted[MAX_PLAYERS + 1], g_iPlayersVotedCount;
4344

4445
public plugin_init()
4546
{
46-
register_plugin("CA: VoteGAG", "1.0.0-alpha", "Sergey Shorokhov");
47+
register_plugin("CA: VoteGAG", "1.0.1-alpha", "Sergey Shorokhov");
4748

4849
register_clcmd("say /votegag", "clcmd_VoteGag");
4950
register_clcmd("say_team /votegag", "clcmd_VoteGag");
@@ -140,6 +141,8 @@ public players_handler(id, menu, item)
140141
formatex(szTitle, charsmax(szTitle), MSG_VMENU_TITLE, szName);
141142
menu_setprop(g_VotingMenu, MPROP_TITLE, szTitle);
142143

144+
ChatColor(0, g_iVotingIndex, MSG_VOTE_START, PREFIX, id, g_iVotingIndex);
145+
143146
for(new i; i < g_iPnum; i++)
144147
{
145148
if(g_arrPlayers[i] == g_iVotingIndex)

0 commit comments

Comments
 (0)