From 16938f2d5d991707bcf2f9878bf38357811bc2ee Mon Sep 17 00:00:00 2001 From: byjumpe <45729960+byjumpe@users.noreply.github.com> Date: Thu, 18 Feb 2021 00:05:41 +0300 Subject: [PATCH 01/10] test plugin vote mode --- .../addons/amxmodx/configs/regg/regg-vote.ini | 10 + cstrike/addons/amxmodx/data/lang/regg.txt | 8 + .../addons/amxmodx/scripting/include/regg.inc | 2 +- .../addons/amxmodx/scripting/regg_vote.sma | 248 ++++++++++++++++++ 4 files changed, 267 insertions(+), 1 deletion(-) create mode 100644 cstrike/addons/amxmodx/configs/regg/regg-vote.ini create mode 100644 cstrike/addons/amxmodx/scripting/regg_vote.sma diff --git a/cstrike/addons/amxmodx/configs/regg/regg-vote.ini b/cstrike/addons/amxmodx/configs/regg/regg-vote.ini new file mode 100644 index 0000000..b7baf8b --- /dev/null +++ b/cstrike/addons/amxmodx/configs/regg/regg-vote.ini @@ -0,0 +1,10 @@ +[vote_mode] +team +single +ffa + +[vote_setting] +startvotetime = 10 +votetime = 15 +freeze = 0 +screenfade = 0 diff --git a/cstrike/addons/amxmodx/data/lang/regg.txt b/cstrike/addons/amxmodx/data/lang/regg.txt index 9519454..7a9f5f2 100644 --- a/cstrike/addons/amxmodx/data/lang/regg.txt +++ b/cstrike/addons/amxmodx/data/lang/regg.txt @@ -36,3 +36,11 @@ REGG_STEAL_POINTS = ^3%n ^1украл ^4%d ^1очка у ^4%n REGG_WARMUP_HUD = Разминочный раунд REGG_WARMUP_START = Начался разминочный раунд! REGG_WARMUP_END = Разминка завершена!^rПриготовьтесь к бою, игра началась! + +REGG_VOTE_MENU = Голосование за выбор режима игры: +REGG_MODE_SINGLE = Одиночный +REGG_MODE_TEAM = Командный +REGG_MODE_FFA = FFA +REGG_PLAYER_VOTE = Игрок ^4%n ^1проголосовал за режим ^4%s +REGG_END_VOTE = Голосование окончено, выбран режим игры ^4%s +REGG_VOTE_ENDED = Голосование уже окончено! diff --git a/cstrike/addons/amxmodx/scripting/include/regg.inc b/cstrike/addons/amxmodx/scripting/include/regg.inc index 8742c5b..203f9e9 100644 --- a/cstrike/addons/amxmodx/scripting/include/regg.inc +++ b/cstrike/addons/amxmodx/scripting/include/regg.inc @@ -16,7 +16,7 @@ #define REGG_MAJOR_VERSION 0 #define REGG_MINOR_VERSION 2 -#define REGG_MAINTENANCE_VERSION 25 +#define REGG_MAINTENANCE_VERSION 26 #define REGG_VERSION str_to_num(fmt("%d%d%d", REGG_MAJOR_VERSION, REGG_MINOR_VERSION, REGG_MAINTENANCE_VERSION)) #define REGG_VERSION_STR fmt("%d.%d.%d-alpha", REGG_MAJOR_VERSION, REGG_MINOR_VERSION, REGG_MAINTENANCE_VERSION) diff --git a/cstrike/addons/amxmodx/scripting/regg_vote.sma b/cstrike/addons/amxmodx/scripting/regg_vote.sma new file mode 100644 index 0000000..f0fbe68 --- /dev/null +++ b/cstrike/addons/amxmodx/scripting/regg_vote.sma @@ -0,0 +1,248 @@ +#include +#include +#include +#include +#include