mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 19:38:25 +00:00
Separated unset start zone message per track (#735).
This commit is contained in:
parent
875d71be3e
commit
5468a94243
@ -223,6 +223,7 @@ public void OnPluginStart()
|
|||||||
gH_Forwards_OnTimerIncrementPost = CreateGlobalForward("Shavit_OnTimeIncrementPost", ET_Event, Param_Cell, Param_Cell, Param_Array);
|
gH_Forwards_OnTimerIncrementPost = CreateGlobalForward("Shavit_OnTimeIncrementPost", ET_Event, Param_Cell, Param_Cell, Param_Array);
|
||||||
|
|
||||||
LoadTranslations("shavit-core.phrases");
|
LoadTranslations("shavit-core.phrases");
|
||||||
|
LoadTranslations("shavit-common.phrases");
|
||||||
|
|
||||||
// game types
|
// game types
|
||||||
gEV_Type = GetEngineVersion();
|
gEV_Type = GetEngineVersion();
|
||||||
@ -471,7 +472,10 @@ public Action Command_StartTimer(int client, int args)
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Shavit_PrintToChat(client, "%T", "StartZoneUndefined", client, gS_ChatStrings.sWarning, gS_ChatStrings.sText);
|
char sTrack[32];
|
||||||
|
GetTrackName(client, track, sTrack, 32);
|
||||||
|
|
||||||
|
Shavit_PrintToChat(client, "%T", "StartZoneUndefined", client, gS_ChatStrings.sWarning, gS_ChatStrings.sText, gS_ChatStrings.sVariable2, sTrack, gS_ChatStrings.sText);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
@ -2403,3 +2407,17 @@ void UpdateStyleSettings(int client)
|
|||||||
|
|
||||||
SetEntityGravity(client, view_as<float>(gA_StyleSettings[gA_Timers[client].iStyle].fGravityMultiplier));
|
SetEntityGravity(client, view_as<float>(gA_StyleSettings[gA_Timers[client].iStyle].fGravityMultiplier));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GetTrackName(int client, int track, char[] output, int size)
|
||||||
|
{
|
||||||
|
if(track < 0 || track >= TRACKS_SIZE)
|
||||||
|
{
|
||||||
|
FormatEx(output, size, "%T", "Track_Unknown", client);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
static char sTrack[16];
|
||||||
|
FormatEx(sTrack, 16, "Track_%d", track);
|
||||||
|
FormatEx(output, size, "%T", sTrack, client);
|
||||||
|
}
|
||||||
|
|||||||
@ -113,8 +113,8 @@
|
|||||||
// ---------- Zones ---------- //
|
// ---------- Zones ---------- //
|
||||||
"StartZoneUndefined"
|
"StartZoneUndefined"
|
||||||
{
|
{
|
||||||
"#format" "{1:s},{2:s}"
|
"#format" "{1:s},{2:s},{3:s},{4:s},{5:s}"
|
||||||
"en" "Your timer {1}will not{2} start as a start zone for the map is not defined."
|
"en" "Your timer {1}will not{2} start because the {3}{4}{5} start zone is not set."
|
||||||
}
|
}
|
||||||
"EndZoneUndefined"
|
"EndZoneUndefined"
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user