Skip to content

Commit

Permalink
Add chat notification for votegag initiation (#308)
Browse files Browse the repository at this point in the history
* Add chat notification for `votegag` initiation

* Update version to `1.0.1-alpha`
  • Loading branch information
wopox1337 committed Nov 13, 2023
1 parent fea4441 commit 1f649e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cstrike/addons/amxmodx/scripting/CA_Addon_VoteGag.sma
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 All @@ -43,7 +44,7 @@ new bool:g_bPlayerVoted[MAX_PLAYERS + 1], g_iPlayersVotedCount;

public plugin_init()
{
register_plugin("CA: VoteGAG", "1.0.0-alpha", "Sergey Shorokhov");
register_plugin("CA: VoteGAG", "1.0.1-alpha", "Sergey Shorokhov");

register_clcmd("say /votegag", "clcmd_VoteGag");
register_clcmd("say_team /votegag", "clcmd_VoteGag");
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 1f649e4

Please sign in to comment.