just updating plugins to 64bit support

This commit is contained in:
jenz
2026-11-22 22:12:20 +01:00
parent 7a4f26c2bd
commit 2dca39be8a
32 changed files with 2990 additions and 516 deletions
+5
View File
@@ -10,6 +10,10 @@
{
"signature" "g_fGameOver"
}
"linux64"
{
"signature" "g_fGameOver"
}
}
}
@@ -19,6 +23,7 @@
{
"library" "server"
"linux" "@g_fGameOver"
"linux64" "@g_fGameOver"
}
}
}
+377 -229
View File
@@ -3,43 +3,70 @@
#include <sourcemod>
#include <sdktools>
#include <multicolors>
#undef REQUIRE_PLUGIN
#tryinclude <mapchooser_extended>
#define REQUIRE_PLUGIN
#define VOTE_NO "###no###"
#define VOTE_YES "###yes###"
#define PLUGIN_TAG "{green}[Extend]"
ConVar g_cvarExtendVoteTime = null;
ConVar g_cvarExtendVotePercent = null;
ConVar g_cvarMpMaxRounds = null;
ConVar g_cvarMpFragLimit = null;
ConVar g_cvarMpWinLimit = null;
ConVar g_cvarMpTimeLimit = null;
// Largest mp_timelimit we allow; floats are exact up to 2^24 and the engine also converts it to int
#define MAX_TIMELIMIT_MINUTES 16777216.0
bool g_bGameOver = false;
int g_iNumAttempts = 0;
int g_iExtendCount = 0;
int g_iExtendTime = 0;
float g_fVoteRequired = 0.0;
ConVar g_cvarExtendVoteTime;
ConVar g_cvarExtendVoteMaxDuration;
ConVar g_cvarExtendVotePercent;
ConVar g_cvarExtendVotePercentIncrement;
ConVar g_cvarExtendVotePercentMax;
ConVar g_cvarExtendVoteMaxFailedAttempt;
ConVar g_cvarExtendVote;
ConVar g_cvarMpMaxRounds;
ConVar g_cvarMpFragLimit;
ConVar g_cvarMpWinLimit;
ConVar g_cvarMpTimeLimit;
ConVar g_cvarRequireAllExtends;
bool g_bCanCancelGameOver = false;
Address g_pGameOver;
public Plugin myinfo =
{
name = "Map extend tools",
author = "Obus + BotoX",
description = "Adds map extension commands.",
version = "1.0",
url = ""
name = "Map Extend Tools",
author = "Obus, BotoX, .Rushaway, koen",
description = "Adds map extension commands.",
version = "1.4.5",
url = ""
};
public void OnPluginStart()
{
LoadTranslations("common.phrases");
LoadTranslations("basevotes.phrases");
LoadTranslations("extend.phrases");
g_cvarMpMaxRounds = FindConVar("mp_maxrounds");
g_cvarMpFragLimit = FindConVar("mp_fraglimit");
g_cvarMpWinLimit = FindConVar("mp_winlimit");
g_cvarMpTimeLimit = FindConVar("mp_timelimit");
g_cvarExtendVote = CreateConVar("sm_extendvote_enabled", "1", "Enable Extend Vote? [1 = Enable | 0 = Disable]", FCVAR_NONE, true, 0.0, true, 1.0);
g_cvarExtendVoteTime = CreateConVar("sm_extendvote_time", "15", "Time that will be added to mp_timelimit shall the extend vote succeed", FCVAR_NONE, true, 1.0);
g_cvarExtendVoteMaxDuration = CreateConVar("sm_extendvote_max_duration", "30", "Maximum minutes an admin can request with \"sm_extend <time>\"", FCVAR_NONE, true, 1.0);
g_cvarExtendVotePercent = CreateConVar("sm_extendvote_percent", "0.6", "Percentage of \"yes\" votes required to consider the vote successful", FCVAR_NONE, true, 0.05, true, 1.0);
g_cvarExtendVotePercentIncrement = CreateConVar("sm_extendvote_percent_increment", "0.1", "Percentage added to the required \"yes\" votes for each successful extend vote on the current map", FCVAR_NONE, true, 0.0, true, 1.0);
g_cvarExtendVotePercentMax = CreateConVar("sm_extendvote_percent_max", "0.9", "Maximum percentage of \"yes\" votes that can be required after increments", FCVAR_NONE, true, 0.05, true, 1.0);
g_cvarExtendVoteMaxFailedAttempt = CreateConVar("sm_extendvote_maxfailed", "0", "Maximum Extend vote failed before locking the Extend vote command \n0 = Disable this function", FCVAR_NONE, true, 0.0);
g_cvarRequireAllExtends = CreateConVar("sm_extendvote_require_all_extends", "1", "Require all mapchooser extends to be used before admins can call for extend? Only works with MapChooser Extended [1 = Yes | 0 = No]", FCVAR_NONE, true, 0.0, true, 1.0);
AutoExecConfig(true, "plugin.Extend");
AutoExecConfig(true);
if (g_cvarMpMaxRounds != null)
RegAdminCmd("sm_extend_rounds", Command_Extend_Rounds, ADMFLAG_GENERIC, "Add more rounds to mp_maxrounds");
@@ -58,240 +85,128 @@ public void OnPluginStart()
if (g_cvarMpTimeLimit != null)
{
RegAdminCmd("sm_extend", Command_Extend, ADMFLAG_GENERIC, "Add more time to mp_timelimit");
RegAdminCmd("sm_extend_time", Command_Extend, ADMFLAG_GENERIC, "Add more time to mp_timelimit");
RegAdminCmd("sm_extendvote", Command_ExtendVote, ADMFLAG_GENERIC, "sm_extendvote [time] - Start an extendvote");
RegAdminCmd("sm_voteextend", Command_ExtendVote, ADMFLAG_GENERIC, "sm_voteextend [time] - Start an extendvote");
RegAdminCmd("sm_extend_vote", Command_ExtendVote, ADMFLAG_GENERIC, "sm_extend_vote [time] - Start an extendvote");
RegAdminCmd("sm_extendmap", Command_Extend, ADMFLAG_GENERIC, "Add more time to mp_timelimit");
RegAdminCmd("sm_extend", Command_ExtendVote, ADMFLAG_GENERIC, "sm_extend [time] - Start an extendvote");
// Relies on the m_fRoundStartTime gamerules prop, which only Counter-Strike games have
EngineVersion engine = GetEngineVersion();
if (engine == Engine_CSS || engine == Engine_CSGO)
RegAdminCmd("sm_roundextend", Command_RoundExtend, ADMFLAG_GENERIC, "sm_roundextend - Extend mp_timelimit elapsed time since the start of the round");
else
LogMessage("\"sm_roundextend\" is only supported on Counter-Strike games and will be disabled.");
}
else
{
LogMessage("Failed to find \"mp_timelimit\" console variable, related commands will be disabled.");
}
Handle hGameConf = LoadGameConfigFile("Extend.games");
if(hGameConf == INVALID_HANDLE)
GameData hGameConf = new GameData("Extend.games");
if (!hGameConf)
{
g_bGameOver = false;
LogError("Couldn't load Extend.games game config! GameOver cancel disabled.");
return;
}
if(!(g_pGameOver = GameConfGetAddress(hGameConf, "GameOver")))
g_pGameOver = hGameConf.GetAddress("GameOver");
delete hGameConf;
if (!g_pGameOver)
{
g_bGameOver = false;
delete hGameConf;
LogError("Couldn't get GameOver address from game config! GameOver cancel disabled.");
return;
}
g_bGameOver = true;
delete hGameConf;
g_bCanCancelGameOver = true;
}
public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{
#if defined _mapchooser_extended_included_
MarkNativeAsOptional("GetExtendsLeft");
#endif
return APLRes_Success;
}
public void OnMapEnd()
{
g_iNumAttempts = 0;
g_iExtendCount = 0;
}
public Action Command_Extend_Rounds(int client, int argc)
{
if (argc < 1)
{
ReplyToCommand(client, "[SM] Usage: sm_extend_rounds <rounds>");
return Plugin_Handled;
}
char sArgs[16];
GetCmdArg(1, sArgs, sizeof(sArgs));
if (sArgs[0] == '-')
{
int iRoundsToDeduct;
if (!StringToIntEx(sArgs[1], iRoundsToDeduct))
{
ReplyToCommand(client, "[SM] Invalid value");
return Plugin_Handled;
}
g_cvarMpMaxRounds.IntValue -= iRoundsToDeduct;
LogAction(client, -1, "\"%L\" deducted \"%d\" rounds from \"mp_maxrounds\"", client, iRoundsToDeduct);
return Plugin_Handled;
}
int iRoundsToAdd;
if (!StringToIntEx(sArgs, iRoundsToAdd))
{
ReplyToCommand(client, "[SM] Invalid value");
return Plugin_Handled;
}
g_cvarMpMaxRounds.IntValue += iRoundsToAdd;
CancelGameOver();
LogAction(client, -1, "\"%L\" added \"%d\" rounds to \"mp_maxrounds\"", client, iRoundsToAdd);
return Plugin_Handled;
return HandleLimitCommand(client, argc, g_cvarMpMaxRounds, "sm_extend_rounds", "rounds", "Unit Round", "Unit Rounds");
}
public Action Command_Extend_Frags(int client, int argc)
{
if (argc < 1)
{
ReplyToCommand(client, "[SM] Usage: sm_extend_frags <frags>");
return Plugin_Handled;
}
char sArgs[16];
GetCmdArg(1, sArgs, sizeof(sArgs));
if (sArgs[0] == '-')
{
int iFragsToDeduct;
if (!StringToIntEx(sArgs[1], iFragsToDeduct))
{
ReplyToCommand(client, "[SM] Invalid value");
return Plugin_Handled;
}
g_cvarMpFragLimit.IntValue -= iFragsToDeduct;
LogAction(client, -1, "\"%L\" deducted \"%d\" frags from \"mp_fraglimit\"", client, iFragsToDeduct);
return Plugin_Handled;
}
int iFragsToAdd;
if (!StringToIntEx(sArgs, iFragsToAdd))
{
ReplyToCommand(client, "[SM] Invalid value");
return Plugin_Handled;
}
g_cvarMpFragLimit.IntValue += iFragsToAdd;
CancelGameOver();
LogAction(client, -1, "\"%L\" added \"%d\" frags to \"mp_fraglimit\"", client, iFragsToAdd);
return Plugin_Handled;
return HandleLimitCommand(client, argc, g_cvarMpFragLimit, "sm_extend_frags", "frags", "Unit Frag", "Unit Frags");
}
public Action Command_Extend_Wins(int client, int argc)
{
if (argc < 1)
{
ReplyToCommand(client, "[SM] Usage: sm_extend_wins <wins>");
return Plugin_Handled;
}
char sArgs[16];
GetCmdArg(1, sArgs, sizeof(sArgs));
if (sArgs[0] == '-')
{
int iWinsToDeduct;
if (!StringToIntEx(sArgs[1], iWinsToDeduct))
{
ReplyToCommand(client, "[SM] Invalid value");
return Plugin_Handled;
}
g_cvarMpWinLimit.IntValue -= iWinsToDeduct;
LogAction(client, -1, "\"%L\" deducted \"%d\" wins from \"mp_winlimit\"", client, iWinsToDeduct);
return Plugin_Handled;
}
int iWinsToAdd;
if (!StringToIntEx(sArgs, iWinsToAdd))
{
ReplyToCommand(client, "[SM] Invalid value");
return Plugin_Handled;
}
g_cvarMpWinLimit.IntValue += iWinsToAdd;
CancelGameOver();
LogAction(client, -1, "\"%L\" added \"%d\" wins to \"mp_winlimit\"", client, iWinsToAdd);
return Plugin_Handled;
return HandleLimitCommand(client, argc, g_cvarMpWinLimit, "sm_extend_wins", "wins", "Unit Win", "Unit Wins");
}
public Action Command_Extend(int client, int argc)
{
if (argc < 1)
return HandleLimitCommand(client, argc, g_cvarMpTimeLimit, "sm_extendmap", "minutes", "Unit Minute", "Unit Minutes");
}
public Action Command_ExtendVote(int client, int argc)
{
if (!g_cvarExtendVote.BoolValue)
{
ReplyToCommand(client, "[SM] Usage: sm_extend <time>");
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Feature Disabled");
return Plugin_Handled;
}
char sArgs[16];
GetCmdArg(1, sArgs, sizeof(sArgs));
if (sArgs[0] == '-')
if (g_cvarExtendVoteMaxFailedAttempt.IntValue > 0 && g_iNumAttempts >= g_cvarExtendVoteMaxFailedAttempt.IntValue)
{
int iMinutesToDeduct;
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Max Failed Votes", g_iNumAttempts);
LogAction(-1, -1, "%L Attempting to start another extend vote after %d vote failed.. Clamped!", client, g_iNumAttempts);
return Plugin_Handled;
}
if (!StringToIntEx(sArgs[1], iMinutesToDeduct))
// Check if all extends are required and if the client can bypass this requirement
if (g_cvarRequireAllExtends.BoolValue && AreExtendsRemaining() && !CheckCommandAccess(client, "sm_extend_bypass", ADMFLAG_CHANGEMAP, false))
{
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Extends Remaining");
return Plugin_Handled;
}
if (IsVoteInProgress())
{
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Vote in Progress");
return Plugin_Handled;
}
g_iExtendTime = g_cvarExtendVoteTime.IntValue;
if (argc == 1)
{
char sArg[16];
GetCmdArg(1, sArg, sizeof(sArg));
int Tmp;
if (!ParseValue(sArg, Tmp) || Tmp < 0)
{
ReplyToCommand(client, "[SM] Invalid value");
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Invalid Value");
return Plugin_Handled;
}
g_cvarMpTimeLimit.IntValue -= iMinutesToDeduct;
LogAction(client, -1, "\"%L\" deducted \"%d\" minutes from \"mp_timelimit\"", client, iMinutesToDeduct);
PrintToChatAll("[SM] %N deducted %d minutes from the timelimit.", client, iMinutesToDeduct);
int maxDuration = g_cvarExtendVoteMaxDuration.IntValue;
if (Tmp > 0)
g_iExtendTime = Tmp > maxDuration ? maxDuration : Tmp;
}
if (!CanChangeLimit(client, g_cvarMpTimeLimit, g_iExtendTime))
return Plugin_Handled;
}
int iMinutesToAdd;
// Capture the requirement now so changing the convars mid-vote can't move it
g_fVoteRequired = GetRequiredVoteRatio();
if (!StringToIntEx(sArgs, iMinutesToAdd))
{
ReplyToCommand(client, "[SM] Invalid value");
return Plugin_Handled;
}
g_cvarMpTimeLimit.IntValue += iMinutesToAdd;
CancelGameOver();
LogAction(client, -1, "\"%L\" added \"%d\" minutes to \"mp_timelimit\"", client, iMinutesToAdd);
PrintToChatAll("[SM] %N added %d minutes to the timelimit.", client, iMinutesToAdd);
return Plugin_Handled;
}
int g_ExtendTime = 0;
public Action Command_ExtendVote(int client, int argc)
{
if (IsVoteInProgress())
{
ReplyToCommand(client, "[SM] %t", "Vote in Progress");
return Plugin_Handled;
}
g_ExtendTime = g_cvarExtendVoteTime.IntValue;
if(argc == 1)
{
char sArg[64];
GetCmdArg(1, sArg, sizeof(sArg));
int Tmp = StringToInt(sArg);
if(Tmp > 0)
g_ExtendTime = Tmp > 30 ? 30 : Tmp;
}
Menu hVoteMenu = new Menu(Handler_VoteCallback, MenuAction_End|MenuAction_DisplayItem|MenuAction_VoteCancel|MenuAction_VoteEnd);
hVoteMenu.SetTitle("Extend the current map (%d minutes)?", g_ExtendTime);
Menu hVoteMenu = new Menu(Handler_VoteCallback, MenuAction_End|MenuAction_Display|MenuAction_DisplayItem|MenuAction_VoteCancel|MenuAction_VoteEnd);
char sRequired[16];
FormatPercent(g_fVoteRequired, sRequired, sizeof(sRequired));
hVoteMenu.SetTitle("Extend map by %d minutes? (%s%% required)", g_iExtendTime, sRequired);
hVoteMenu.AddItem(VOTE_YES, "Yes");
hVoteMenu.AddItem(VOTE_NO, "No");
@@ -300,8 +215,38 @@ public Action Command_ExtendVote(int client, int argc)
hVoteMenu.ExitButton = false;
hVoteMenu.DisplayVoteToAll(20);
ShowActivity2(client, "[SM] ", "Initiated an extend vote");
LogAction(client, -1, "\"%L\" initiated an extend vote.", client);
char sTimeleft[128];
int TimeLeft;
GetMapTimeLeft(TimeLeft);
if (TimeLeft >= 0)
GenerateTimeleft(sTimeleft, sizeof(sTimeleft));
else
strcopy(sTimeleft, sizeof(sTimeleft), "0:00 (This is the last round!)");
CShowActivity2(client, PLUGIN_TAG ... " ", "{default}%t", "Activity Vote Started");
LogAction(client, -1, "\"%L\" Initiated an extend vote. (%d minutes)\nTimeLeft: %s", client, g_iExtendTime, sTimeleft);
return Plugin_Handled;
}
public Action Command_RoundExtend(int client, int argc)
{
float fElapsedTime = (GetGameTime() - GameRules_GetPropFloat("m_fRoundStartTime")) / 60.0;
int elapsedMinutes = RoundToFloor(fElapsedTime);
// Negative during freeze time, 0 in the first minute of the round
if (elapsedMinutes <= 0)
{
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Round Too Short");
return Plugin_Handled;
}
if (!CanChangeLimit(client, g_cvarMpTimeLimit, elapsedMinutes))
return Plugin_Handled;
ChangeLimit(g_cvarMpTimeLimit, elapsedMinutes);
CPrintToChatAll("%s {default}%t", PLUGIN_TAG, "Round Extended", client, elapsedMinutes);
LogAction(client, -1, "\"%L\" added \"%d\" minutes to \"mp_timelimit\" based on the current round time elapsed.", client, elapsedMinutes);
return Plugin_Handled;
}
@@ -309,69 +254,260 @@ public Action Command_ExtendVote(int client, int argc)
public int Handler_VoteCallback(Menu menu, MenuAction action, int param1, int param2)
{
if (action == MenuAction_End)
{
delete menu;
else if (action == MenuAction_Display)
{
// Translate the title for each player; the SetTitle in Command_ExtendVote is the fallback
char sRequired[16], sTitle[128];
FormatPercent(g_fVoteRequired, sRequired, sizeof(sRequired));
Format(sTitle, sizeof(sTitle), "%T", "Vote Menu Title", param1, g_iExtendTime, sRequired);
view_as<Panel>(param2).SetTitle(sTitle);
}
else if (action == MenuAction_DisplayItem)
{
char display[64];
menu.GetItem(param2, "", 0, _, display, sizeof(display));
if (strcmp(display, VOTE_NO) == 0 || strcmp(display, VOTE_YES) == 0)
{
if (strcmp(display, "No") == 0 || strcmp(display, "Yes") == 0)
{
char buffer[255];
Format(buffer, sizeof(buffer), "%T", display, param1);
return RedrawMenuItem(buffer);
}
}
else if (action == MenuAction_VoteCancel && param1 == VoteCancel_NoVotes)
{
PrintToChatAll("[SM] %t", "No Votes Cast");
LogAction(-1, -1, "No Votes Cast. Extend Vote failed.");
PrintToServer("[SM] %t", "No Votes Cast");
CPrintToChatAll("%s {default}%t", PLUGIN_TAG, "No Votes Cast");
}
else if (action == MenuAction_VoteEnd)
{
char item[64], display[64];
float percent, limit;
char item[64];
int votes, totalVotes;
GetMenuVoteInfo(param2, votes, totalVotes);
menu.GetItem(param1, item, sizeof(item), _, display, sizeof(display));
menu.GetItem(param1, item, sizeof(item));
if (strcmp(item, VOTE_NO) == 0)
{
votes = totalVotes - votes;
}
limit = g_cvarExtendVotePercent.FloatValue;
percent = FloatDiv(float(votes),float(totalVotes));
// votes is now the yes count; the result depends only on it, not on which option won
float fYesRatio = float(votes) / float(totalVotes);
char sRequired[16], sYes[16];
FormatPercent(g_fVoteRequired, sRequired, sizeof(sRequired));
FormatPercent(fYesRatio, sYes, sizeof(sYes));
if ((strcmp(item, VOTE_YES) == 0 && FloatCompare(percent, limit) < 0) || strcmp(item, VOTE_NO) == 0)
// Small epsilon so sums like 0.6 + 0.05 * 2 (0.70000005) still accept exactly 70%
if (fYesRatio + 0.0001 < g_fVoteRequired)
{
LogAction(-1, -1, "Extend vote failed.");
PrintToChatAll("[SM] %t", "Vote Failed", RoundToNearest(100.0 * limit), RoundToNearest(100.0 * percent), totalVotes);
LogAction(-1, -1, "Extend vote failed. %s%% vote required. (Received %s%% of %d votes)", sRequired, sYes, totalVotes);
PrintToServer("[SM] Vote failed. %s%% vote required. (Received %s%% of %d votes)", sRequired, sYes, totalVotes);
CPrintToChatAll("%s {default}%t", PLUGIN_TAG, "Extend Vote Failed", sRequired, sYes, totalVotes);
g_iNumAttempts++;
}
else
{
LogAction(-1, -1, "Extend vote successful, extending current map by \"%d\" minutes", g_ExtendTime);
PrintToChatAll("[SM] %t", "Vote Successful", RoundToNearest(100.0 * percent), totalVotes);
g_cvarMpTimeLimit.IntValue += g_ExtendTime;
CancelGameOver();
if (strcmp(item, VOTE_NO) == 0 || strcmp(item, VOTE_YES) == 0)
// The limit may have changed while the vote was running
if (!CanChangeLimit(0, g_cvarMpTimeLimit, g_iExtendTime))
{
strcopy(item, sizeof(item), display);
LogAction(-1, -1, "Extend vote passed, but \"mp_timelimit\" can no longer be extended. Extension skipped.");
CPrintToChatAll("%s {default}%t", PLUGIN_TAG, "Extend Vote Passed No Limit");
return 0;
}
char sOldTimeleft[128];
GenerateTimeleft(sOldTimeleft, sizeof(sOldTimeleft));
ChangeLimit(g_cvarMpTimeLimit, g_iExtendTime);
char sTimeleft[128];
GenerateTimeleft(sTimeleft, sizeof(sTimeleft));
LogAction(-1, -1, "Extend vote successful. (Received %s%% of %d votes)\nExtending current map by \"%d\" minutes.\nPrevious TimeLeft: %s\nNew TimeLeft: %s", sYes, totalVotes, g_iExtendTime, sOldTimeleft, sTimeleft);
PrintToServer("[SM] Vote successful. (Received %s%% of %d votes)", sYes, totalVotes);
CPrintToChatAll("%s {default}%t", PLUGIN_TAG, "Extend Vote Successful", sYes, totalVotes);
g_iNumAttempts = 0;
g_iExtendCount++;
}
}
return 0;
}
Action HandleLimitCommand(int client, int argc, ConVar cvar, const char[] sCommand, const char[] sUnit, const char[] sUnitOne, const char[] sUnitMany)
{
if (argc < 1)
{
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Command Usage", sCommand, sUnit);
return Plugin_Handled;
}
char sArg[16];
GetCmdArg(1, sArg, sizeof(sArg));
int delta;
if (!ParseValue(sArg, delta))
{
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Invalid Value");
return Plugin_Handled;
}
if (!CanChangeLimit(client, cvar, delta))
return Plugin_Handled;
char sName[32];
cvar.GetName(sName, sizeof(sName));
bool isTime = (cvar == g_cvarMpTimeLimit);
char sOldTimeleft[128];
if (isTime)
GenerateTimeleft(sOldTimeleft, sizeof(sOldTimeleft));
ChangeLimit(cvar, delta);
// Messages show the amount without its sign and say added or deducted instead
bool isNegative = (delta < 0);
int value = isNegative ? -delta : delta;
char sAction[16], sPrep[8];
strcopy(sAction, sizeof(sAction), isNegative ? "deducted" : "added");
strcopy(sPrep, sizeof(sPrep), isNegative ? "from" : "to");
CShowActivity2(client, PLUGIN_TAG ... " ", "{default}%t", isNegative ? "Activity Limit Deducted" : "Activity Limit Added", value, value == 1 ? sUnitOne : sUnitMany, sName);
if (isTime)
{
char sTimeleft[128];
GenerateTimeleft(sTimeleft, sizeof(sTimeleft));
LogAction(client, -1, "\"%L\" %s \"%d\" %s %s \"%s\"\nPrevious Timeleft: %s\nNew Timeleft: %s", client, sAction, value, sUnit, sPrep, sName, sOldTimeleft, sTimeleft);
}
else
LogAction(client, -1, "\"%L\" %s \"%d\" %s %s \"%s\"", client, sAction, value, sUnit, sPrep, sName);
return Plugin_Handled;
}
stock float GetRequiredVoteRatio()
{
float fBase = g_cvarExtendVotePercent.FloatValue;
float limit = fBase + (g_cvarExtendVotePercentIncrement.FloatValue * float(g_iExtendCount));
float fMax = g_cvarExtendVotePercentMax.FloatValue;
// The cap only limits the increments, it never lowers the base requirement
if (limit > fMax)
limit = (fMax > fBase) ? fMax : fBase;
return limit;
}
// Formats a 0-1 ratio as a percentage with one decimal, dropping a trailing ".0"
stock void FormatPercent(float ratio, char[] buffer, int size)
{
FormatEx(buffer, size, "%.1f", 100.0 * ratio);
int len = strlen(buffer);
if (len > 2 && StrEqual(buffer[len - 2], ".0"))
buffer[len - 2] = '\0';
}
stock void GenerateTimeleft(char[] sTimeleft, int size)
{
int TimeLeft;
if (!GetMapTimeLeft(TimeLeft) || TimeLeft < 0)
{
strcopy(sTimeleft, size, "N/A");
return;
}
FormatEx(sTimeleft, size, "%02d:%02d", TimeLeft / 60, TimeLeft % 60);
}
// Parses "<n>" or "-<n>" into a signed amount
stock bool ParseValue(const char[] sArg, int &delta)
{
bool isNegative = (sArg[0] == '-');
int start = isNegative ? 1 : 0;
if (sArg[start] == '\0')
return false;
// Accept plain digits only and build the number by hand, so nothing can wrap past cellmax
int value = 0;
for (int i = start; sArg[i] != '\0'; i++)
{
if (sArg[i] < '0' || sArg[i] > '9')
return false;
int digit = sArg[i] - '0';
if (value > (cellmax - digit) / 10)
return false;
value = value * 10 + digit;
}
delta = isNegative ? -value : value;
return true;
}
stock bool CanChangeLimit(int client, ConVar cvar, int delta)
{
char sName[32];
cvar.GetName(sName, sizeof(sName));
// Read as a float for every limit, since mp_timelimit can be fractional
bool isTime = (cvar == g_cvarMpTimeLimit);
float fCurrent = cvar.FloatValue;
// Adding to "no limit" would set a limit that may already be exceeded
if (fCurrent <= 0.0)
{
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Limit Not Set", sName);
return false;
}
if (delta < 0 && fCurrent + float(delta) <= 0.0)
{
if (isTime)
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Time Limit Below Zero", sName, fCurrent + float(delta));
else
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Limit Below Zero", sName, cvar.IntValue + delta);
return false;
}
if (delta > 0 && isTime && fCurrent + float(delta) > MAX_TIMELIMIT_MINUTES)
{
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Value Too Large", sName);
return false;
}
if (delta > 0 && !isTime && delta > cellmax - cvar.IntValue)
{
CReplyToCommand(client, "%s {default}%t", PLUGIN_TAG, "Value Too Large", sName);
return false;
}
return true;
}
// Adds a signed amount to a limit; mp_timelimit keeps fractional minutes
stock void ChangeLimit(ConVar cvar, int delta)
{
if (cvar == g_cvarMpTimeLimit)
cvar.FloatValue += float(delta);
else
cvar.IntValue += delta;
if (delta >= 0)
CancelGameOver();
}
void CancelGameOver()
{
if (!g_bGameOver)
if (!g_bCanCancelGameOver)
return;
// Only undo game over when it actually happened, so normal extends don't reset movement
if (LoadFromAddress(g_pGameOver, NumberType_Int8) == 0)
return;
StoreToAddress(g_pGameOver, 0, NumberType_Int8);
@@ -387,3 +523,15 @@ void CancelGameOver()
}
}
}
stock bool AreExtendsRemaining()
{
#if defined _mapchooser_extended_included_
if (GetFeatureStatus(FeatureType_Native, "GetExtendsLeft") == FeatureStatus_Available)
return GetExtendsLeft();
#endif
// SourceMod's stock MapChooser has no way to read how many extends are left
// (sm_mapvote_extend is the configured amount and never goes down), so don't block
return false;
}
+456
View File
@@ -0,0 +1,456 @@
"Phrases"
{
"Feature Disabled"
{
"en" "Extend votes are currently disabled."
"fr" "Les votes de prolongation sont actuellement désactivés."
"ru" "Голосования за продление сейчас отключены."
"chi" "延长投票当前已禁用。"
"zho" "延長投票目前已停用。"
"es" "Las votaciones de extensión están desactivadas actualmente."
"de" "Verlängerungsabstimmungen sind derzeit deaktiviert."
"pt" "As votações de extensão estão desativadas no momento."
"pl" "Głosowania o przedłużenie są obecnie wyłączone."
"tr" "Uzatma oylamaları şu anda devre dışı."
"it" "Le votazioni per l'estensione sono attualmente disabilitate."
"ua" "Голосування за продовження зараз вимкнені."
"cze" "Hlasování o prodloužení jsou momentálně vypnutá."
}
"Max Failed Votes"
{
"#format" "{1:d}"
"en" "The extend vote has already failed {1} time(s). No more extend votes can be started."
"fr" "Le vote de prolongation a déjà échoué {1} fois. Aucun autre vote de prolongation ne peut être lancé."
"ru" "Количество неудачных голосований за продление: {1}. Новые голосования за продление запустить нельзя."
"chi" "延长投票已失败 {1} 次,无法再发起延长投票。"
"zho" "延長投票已失敗 {1} 次,無法再發起延長投票。"
"es" "La votación de extensión ya ha fallado {1} vez/veces. No se pueden iniciar más votaciones de extensión."
"de" "Die Verlängerungsabstimmung ist bereits {1}-mal gescheitert. Es können keine weiteren Verlängerungsabstimmungen gestartet werden."
"pt" "A votação de extensão já falhou {1} vez(es). Não é possível iniciar mais votações de extensão."
"pl" "Głosowanie o przedłużenie nie powiodło się już {1} raz(y). Nie można rozpocząć kolejnych głosowań."
"tr" "Uzatma oylaması şimdiden {1} kez başarısız oldu. Daha fazla uzatma oylaması başlatılamaz."
"it" "La votazione per l'estensione è già fallita {1} volta/e. Non è possibile avviare altre votazioni."
"ua" "Голосування за продовження вже провалилося {1} раз(ів). Нові голосування запустити не можна."
"cze" "Hlasování o prodloužení již selhalo {1}krát. Další hlasování nelze zahájit."
}
"Extends Remaining"
{
"en" "Cannot start an extend vote until all extends are used."
"fr" "Impossible de lancer un vote de prolongation tant que toutes les prolongations n'ont pas été utilisées."
"ru" "Нельзя начать голосование за продление, пока не использованы все продления."
"chi" "在所有延长次数用完之前,无法发起延长投票。"
"zho" "在所有延長次數用完之前,無法發起延長投票。"
"es" "No se puede iniciar una votación de extensión hasta que se usen todas las extensiones."
"de" "Eine Verlängerungsabstimmung ist erst möglich, wenn alle Verlängerungen aufgebraucht sind."
"pt" "Não é possível iniciar uma votação de extensão até que todas as extensões sejam usadas."
"pl" "Nie można rozpocząć głosowania o przedłużenie, dopóki nie zostaną wykorzystane wszystkie przedłużenia."
"tr" "Tüm uzatmalar kullanılana kadar uzatma oylaması başlatılamaz."
"it" "Non è possibile avviare una votazione per l'estensione finché non sono state usate tutte le estensioni."
"ua" "Не можна почати голосування за продовження, доки не використано всі продовження."
"cze" "Hlasování o prodloužení nelze zahájit, dokud nejsou využita všechna prodloužení."
}
"Invalid Value"
{
"en" "Invalid value specified."
"fr" "Valeur spécifiée invalide."
"ru" "Указано недопустимое значение."
"chi" "指定的数值无效。"
"zho" "指定的數值無效。"
"es" "Valor especificado no válido."
"de" "Ungültiger Wert angegeben."
"pt" "Valor especificado inválido."
"pl" "Podano nieprawidłową wartość."
"tr" "Geçersiz değer belirtildi."
"it" "Valore specificato non valido."
"ua" "Указано недопустиме значення."
"cze" "Zadána neplatná hodnota."
}
"Command Usage"
{
"#format" "{1:s},{2:s}"
"en" "Usage: {1} {olive}<{2}>"
"fr" "Utilisation : {1} {olive}<{2}>"
"ru" "Использование: {1} {olive}<{2}>"
"chi" "用法:{1} {olive}<{2}>"
"zho" "用法:{1} {olive}<{2}>"
"es" "Uso: {1} {olive}<{2}>"
"de" "Verwendung: {1} {olive}<{2}>"
"pt" "Uso: {1} {olive}<{2}>"
"pl" "Użycie: {1} {olive}<{2}>"
"tr" "Kullanım: {1} {olive}<{2}>"
"it" "Uso: {1} {olive}<{2}>"
"ua" "Використання: {1} {olive}<{2}>"
"cze" "Použití: {1} {olive}<{2}>"
}
"Round Too Short"
{
"en" "Failed to adjust round time because less than a minute of the round has elapsed."
"fr" "Impossible d'ajuster le temps de la manche car moins d'une minute s'est écoulée depuis son début."
"ru" "Не удалось изменить время раунда: с начала раунда прошло меньше минуты."
"chi" "无法调整回合时间,因为本回合开始还不到一分钟。"
"zho" "無法調整回合時間,因為本回合開始還不到一分鐘。"
"es" "No se pudo ajustar el tiempo de la ronda porque ha transcurrido menos de un minuto."
"de" "Die Rundenzeit konnte nicht angepasst werden, da weniger als eine Minute der Runde vergangen ist."
"pt" "Não foi possível ajustar o tempo da rodada porque passou menos de um minuto desde o início."
"pl" "Nie udało się zmienić czasu rundy, ponieważ upłynęło mniej niż minuta od jej rozpoczęcia."
"tr" "Turun başlamasının üzerinden bir dakikadan az geçtiği için tur süresi ayarlanamadı."
"it" "Impossibile modificare il tempo del round perché è trascorso meno di un minuto."
"ua" "Не вдалося змінити час раунду: з початку раунду минуло менше хвилини."
"cze" "Čas kola nelze upravit, protože od jeho začátku uplynula méně než minuta."
}
"Round Extended"
{
"#format" "{1:N},{2:d}"
"en" "{1} added {2} minutes to \"mp_timelimit\" based on the current round time elapsed."
"fr" "{1} a ajouté {2} minutes à \"mp_timelimit\" en fonction du temps écoulé de la manche en cours."
"ru" "{1} добавил(а) {2} мин. к \"mp_timelimit\" с учётом времени, прошедшего в текущем раунде."
"chi" "{1} 根据当前回合已进行的时间,为 \"mp_timelimit\" 增加了 {2} 分钟。"
"zho" "{1} 根據目前回合已進行的時間,為 \"mp_timelimit\" 增加了 {2} 分鐘。"
"es" "{1} añadió {2} minutos a \"mp_timelimit\" según el tiempo transcurrido de la ronda actual."
"de" "{1} hat basierend auf der bisherigen Rundenzeit {2} Minuten zu \"mp_timelimit\" hinzugefügt."
"pt" "{1} adicionou {2} minutos a \"mp_timelimit\" com base no tempo decorrido da rodada atual."
"pl" "{1} dodał(a) {2} min do \"mp_timelimit\" na podstawie czasu bieżącej rundy."
"tr" "{1}, mevcut turun geçen süresine göre \"mp_timelimit\" değerine {2} dakika ekledi."
"it" "{1} ha aggiunto {2} minuti a \"mp_timelimit\" in base al tempo trascorso del round attuale."
"ua" "{1} додав(ла) {2} хв. до \"mp_timelimit\" з урахуванням часу, що минув у поточному раунді."
"cze" "{1} přidal(a) {2} min. k \"mp_timelimit\" podle uplynulého času aktuálního kola."
}
"Vote Menu Title"
{
"#format" "{1:d},{2:s}"
"en" "Extend map by {1} minutes? ({2}%% required)"
"fr" "Prolonger la carte de {1} minutes ? ({2}%% requis)"
"ru" "Продлить карту на {1} мин.? (Требуется {2}%%)"
"chi" "将地图延长 {1} 分钟?(需要 {2}%%)"
"zho" "將地圖延長 {1} 分鐘?(需要 {2}%%)"
"es" "¿Extender el mapa {1} minutos? ({2}%% requerido)"
"de" "Map um {1} Minuten verlängern? ({2}%% benötigt)"
"pt" "Estender o mapa em {1} minutos? ({2}%% necessário)"
"pl" "Przedłużyć mapę o {1} min? (Wymagane {2}%%)"
"tr" "Harita {1} dakika uzatılsın mı? ({2}%% gerekli)"
"it" "Estendere la mappa di {1} minuti? (richiesto {2}%%)"
"ua" "Продовжити мапу на {1} хв.? (Потрібно {2}%%)"
"cze" "Prodloužit mapu o {1} min.? (Vyžadováno {2}%%)"
}
"Extend Vote Failed"
{
"#format" "{1:s},{2:s},{3:d}"
"en" "Extend vote failed. {1}%% vote required. (Received {2}%% of {3} votes)"
"fr" "Le vote de prolongation a échoué. {1}%% des votes requis. ({2}%% reçus sur {3} votes)"
"ru" "Голосование за продление не прошло. Требуется {1}%% голосов. (Получено {2}%%, всего голосов: {3})"
"chi" "延长投票失败。需要 {1}%% 的票数。(共 {3} 票,获得 {2}%%)"
"zho" "延長投票失敗。需要 {1}%% 的票數。(共 {3} 票,獲得 {2}%%)"
"es" "La votación de extensión ha fallado. Se requiere {1}%% de votos. (Recibido {2}%% de {3} votos)"
"de" "Verlängerungsabstimmung gescheitert. {1}%% der Stimmen benötigt. ({2}%% von {3} Stimmen erhalten)"
"pt" "A votação de extensão falhou. {1}%% dos votos necessários. (Recebeu {2}%% de {3} votos)"
"pl" "Głosowanie o przedłużenie nie powiodło się. Wymagane {1}%% głosów. (Otrzymano {2}%% z {3} głosów)"
"tr" "Uzatma oylaması başarısız oldu. Oyların {1}%% gerekli. ({3} oyun {2}%% alındı)"
"it" "Votazione per l'estensione fallita. Richiesto il {1}%% dei voti. (Ricevuto il {2}%% su {3} voti)"
"ua" "Голосування за продовження провалилося. Потрібно {1}%% голосів. (Отримано {2}%% із {3} голосів)"
"cze" "Hlasování o prodloužení selhalo. Vyžadováno {1}%% hlasů. (Získáno {2}%% z {3} hlasů)"
}
"Extend Vote Successful"
{
"#format" "{1:s},{2:d}"
"en" "Extend vote successful. (Received {1}%% of {2} votes)"
"fr" "Le vote de prolongation a réussi. ({1}%% reçus sur {2} votes)"
"ru" "Голосование за продление прошло успешно. (Получено {1}%%, всего голосов: {2})"
"chi" "延长投票成功。(共 {2} 票,获得 {1}%%)"
"zho" "延長投票成功。(共 {2} 票,獲得 {1}%%)"
"es" "La votación de extensión ha sido aprobada. (Recibido {1}%% de {2} votos)"
"de" "Verlängerungsabstimmung erfolgreich. ({1}%% von {2} Stimmen erhalten)"
"pt" "A votação de extensão foi aprovada. (Recebeu {1}%% de {2} votos)"
"pl" "Głosowanie o przedłużenie zakończone sukcesem. (Otrzymano {1}%% z {2} głosów)"
"tr" "Uzatma oylaması başarılı. ({2} oyun {1}%% alındı)"
"it" "Votazione per l'estensione riuscita. (Ricevuto il {1}%% su {2} voti)"
"ua" "Голосування за продовження пройшло успішно. (Отримано {1}%% із {2} голосів)"
"cze" "Hlasování o prodloužení bylo úspěšné. (Získáno {1}%% z {2} hlasů)"
}
"Extend Vote Passed No Limit"
{
"en" "The vote passed but \"mp_timelimit\" cannot be extended."
"fr" "Le vote a réussi, mais \"mp_timelimit\" ne peut pas être prolongé."
"ru" "Голосование прошло, но \"mp_timelimit\" нельзя продлить."
"chi" "投票已通过,但 \"mp_timelimit\" 无法延长。"
"zho" "投票已通過,但 \"mp_timelimit\" 無法延長。"
"es" "La votación fue aprobada, pero \"mp_timelimit\" no se puede extender."
"de" "Die Abstimmung war erfolgreich, aber \"mp_timelimit\" kann nicht verlängert werden."
"pt" "A votação foi aprovada, mas \"mp_timelimit\" não pode ser estendido."
"pl" "Głosowanie zakończyło się sukcesem, ale \"mp_timelimit\" nie może zostać przedłużony."
"tr" "Oylama geçti ancak \"mp_timelimit\" uzatılamıyor."
"it" "La votazione è passata ma \"mp_timelimit\" non può essere esteso."
"ua" "Голосування пройшло, але \"mp_timelimit\" не можна продовжити."
"cze" "Hlasování prošlo, ale \"mp_timelimit\" nelze prodloužit."
}
"Limit Not Set"
{
"#format" "{1:s}"
"en" "Cannot change \"{1}\" because it is set to 0 (no limit)."
"fr" "Impossible de modifier \"{1}\" car sa valeur est 0 (aucune limite)."
"ru" "Нельзя изменить \"{1}\", так как его значение равно 0 (без ограничения)."
"chi" "无法更改 \"{1}\",因为它被设置为 0(无限制)。"
"zho" "無法變更 \"{1}\",因為它被設定為 0(無限制)。"
"es" "No se puede cambiar \"{1}\" porque está en 0 (sin límite)."
"de" "\"{1}\" kann nicht geändert werden, da es auf 0 (kein Limit) steht."
"pt" "Não é possível alterar \"{1}\" porque está definido como 0 (sem limite)."
"pl" "Nie można zmienić \"{1}\", ponieważ ma wartość 0 (brak limitu)."
"tr" "\"{1}\" değeri 0 (limitsiz) olduğu için değiştirilemez."
"it" "Impossibile modificare \"{1}\" perché è impostato a 0 (nessun limite)."
"ua" "Не можна змінити \"{1}\", бо його значення дорівнює 0 (без обмеження)."
"cze" "Nelze změnit \"{1}\", protože je nastaveno na 0 (bez limitu)."
}
"Limit Below Zero"
{
"#format" "{1:s},{2:d}"
"en" "\"{1}\" ({2}) can't be zero or negative."
"fr" "\"{1}\" ({2}) ne peut pas être nul ou négatif."
"ru" "\"{1}\" ({2}) не может быть нулевым или отрицательным."
"chi" "\"{1}\" ({2}) 不能为零或负数。"
"zho" "\"{1}\" ({2}) 不能為零或負數。"
"es" "\"{1}\" ({2}) no puede ser cero ni negativo."
"de" "\"{1}\" ({2}) darf nicht null oder negativ sein."
"pt" "\"{1}\" ({2}) não pode ser zero ou negativo."
"pl" "\"{1}\" ({2}) nie może wynosić zero ani być ujemne."
"tr" "\"{1}\" ({2}) sıfır veya negatif olamaz."
"it" "\"{1}\" ({2}) non può essere zero o negativo."
"ua" "\"{1}\" ({2}) не може бути нульовим або від'ємним."
"cze" "\"{1}\" ({2}) nemůže být nula ani záporné."
}
"Time Limit Below Zero"
{
"#format" "{1:s},{2:.2f}"
"en" "\"{1}\" ({2}) can't be zero or negative."
"fr" "\"{1}\" ({2}) ne peut pas être nul ou négatif."
"ru" "\"{1}\" ({2}) не может быть нулевым или отрицательным."
"chi" "\"{1}\" ({2}) 不能为零或负数。"
"zho" "\"{1}\" ({2}) 不能為零或負數。"
"es" "\"{1}\" ({2}) no puede ser cero ni negativo."
"de" "\"{1}\" ({2}) darf nicht null oder negativ sein."
"pt" "\"{1}\" ({2}) não pode ser zero ou negativo."
"pl" "\"{1}\" ({2}) nie może wynosić zero ani być ujemne."
"tr" "\"{1}\" ({2}) sıfır veya negatif olamaz."
"it" "\"{1}\" ({2}) non può essere zero o negativo."
"ua" "\"{1}\" ({2}) не може бути нульовим або від'ємним."
"cze" "\"{1}\" ({2}) nemůže být nula ani záporné."
}
"Value Too Large"
{
"#format" "{1:s}"
"en" "Value is too large for \"{1}\"."
"fr" "La valeur est trop grande pour \"{1}\"."
"ru" "Слишком большое значение для \"{1}\"."
"chi" "\"{1}\" 的数值过大。"
"zho" "\"{1}\" 的數值過大。"
"es" "El valor es demasiado grande para \"{1}\"."
"de" "Der Wert ist zu groß für \"{1}\"."
"pt" "O valor é grande demais para \"{1}\"."
"pl" "Wartość jest zbyt duża dla \"{1}\"."
"tr" "Değer \"{1}\" için çok büyük."
"it" "Il valore è troppo grande per \"{1}\"."
"ua" "Занадто велике значення для \"{1}\"."
"cze" "Hodnota je příliš velká pro \"{1}\"."
}
"Activity Vote Started"
{
"en" "Initiated an extend vote."
"fr" "A lancé un vote de prolongation."
"ru" "Начал(а) голосование за продление."
"chi" "发起了延长投票。"
"zho" "發起了延長投票。"
"es" "Inició una votación de extensión."
"de" "Hat eine Verlängerungsabstimmung gestartet."
"pt" "Iniciou uma votação de extensão."
"pl" "Rozpoczął(-ęła) głosowanie o przedłużenie."
"tr" "Uzatma oylaması başlattı."
"it" "Ha avviato una votazione per l'estensione."
"ua" "Розпочав(ла) голосування за продовження."
"cze" "Zahájil(a) hlasování o prodloužení."
}
"Activity Limit Added"
{
"#format" "{1:d},{2:t},{3:s}"
"en" "added {1} {2} to \"{3}\""
"fr" "a ajouté {1} {2} à \"{3}\""
"ru" "добавил(а) {1} {2} к \"{3}\""
"chi" "增加了 {1} {2}(\"{3}\")"
"zho" "為 \"{3}\" 增加了 {1} {2}"
"es" "añadió {1} {2} a \"{3}\""
"de" "hat {1} {2} zu \"{3}\" hinzugefügt"
"pt" "adicionou {1} {2} a \"{3}\""
"pl" "dodał(a) {1} {2} do \"{3}\""
"tr" "\"{3}\" değerine {1} {2} ekledi"
"it" "ha aggiunto {1} {2} a \"{3}\""
"ua" "додав(ла) {1} {2} до \"{3}\""
"cze" "přidal(a) {1} {2} k \"{3}\""
}
"Activity Limit Deducted"
{
"#format" "{1:d},{2:t},{3:s}"
"en" "deducted {1} {2} from \"{3}\""
"fr" "a retiré {1} {2} de \"{3}\""
"ru" "вычел(а) {1} {2} из \"{3}\""
"chi" "扣除了 {1} {2}(\"{3}\")"
"zho" "從 \"{3}\" 中扣除了 {1} {2}"
"es" "restó {1} {2} de \"{3}\""
"de" "hat {1} {2} von \"{3}\" abgezogen"
"pt" "subtraiu {1} {2} de \"{3}\""
"pl" "odjął(-ęła) {1} {2} od \"{3}\""
"tr" "\"{3}\" değerinden {1} {2} düştü"
"it" "ha sottratto {1} {2} da \"{3}\""
"ua" "відняв(ла) {1} {2} від \"{3}\""
"cze" "odečetl(a) {1} {2} z \"{3}\""
}
"Unit Round"
{
"en" "round"
"fr" "round"
"ru" "раунд"
"chi" "回合"
"es" "ronda"
"de" "Runde"
"pt" "rodada"
"pl" "runda"
"tr" "tur"
"it" "round"
"ua" "раунд"
"zho" "回合"
"cze" "kolo"
}
"Unit Rounds"
{
"en" "rounds"
"fr" "rounds"
"ru" "раунд(ов)"
"chi" "回合"
"es" "rondas"
"de" "Runden"
"pt" "rodadas"
"pl" "rund(y)"
"tr" "tur"
"it" "round"
"ua" "раунд(ів)"
"zho" "回合"
"cze" "kol"
}
"Unit Frag"
{
"en" "frag"
"fr" "frag"
"ru" "фраг"
"chi" "次击杀"
"es" "frag"
"de" "Frag"
"pt" "frag"
"pl" "frag"
"tr" "öldürme"
"it" "frag"
"ua" "фраг"
"zho" "次擊殺"
"cze" "frag"
}
"Unit Frags"
{
"en" "frags"
"fr" "frags"
"ru" "фраг(ов)"
"chi" "次击杀"
"es" "frags"
"de" "Frags"
"pt" "frags"
"pl" "fragi"
"tr" "öldürme"
"it" "frag"
"ua" "фраг(ів)"
"zho" "次擊殺"
"cze" "fragů"
}
"Unit Win"
{
"en" "win"
"fr" "victoire"
"ru" "победу"
"chi" "场胜利"
"es" "victoria"
"de" "Sieg"
"pt" "vitória"
"pl" "wygraną"
"tr" "galibiyet"
"it" "vittoria"
"ua" "перемогу"
"zho" "場勝利"
"cze" "výhru"
}
"Unit Wins"
{
"en" "wins"
"fr" "victoires"
"ru" "побед(ы)"
"chi" "场胜利"
"es" "victorias"
"de" "Siege"
"pt" "vitórias"
"pl" "wygrane"
"tr" "galibiyet"
"it" "vittorie"
"ua" "перемог(и)"
"zho" "場勝利"
"cze" "výhry"
}
"Unit Minute"
{
"en" "minute"
"fr" "minute"
"ru" "мин."
"chi" "分钟"
"es" "minuto"
"de" "Minute"
"pt" "minuto"
"pl" "minutę"
"tr" "dakika"
"it" "minuto"
"ua" "хв."
"zho" "分鐘"
"cze" "minutu"
}
"Unit Minutes"
{
"en" "minutes"
"fr" "minutes"
"ru" "мин."
"chi" "分钟"
"es" "minutos"
"de" "Minuten"
"pt" "minutos"
"pl" "minut(y)"
"tr" "dakika"
"it" "minuti"
"ua" "хв."
"zho" "分鐘"
"cze" "minut"
}
}