From ec0abddcf0508a86305fa618bd0f099c7a60fec5 Mon Sep 17 00:00:00 2001 From: totles Date: Thu, 14 Feb 2019 13:40:59 +0100 Subject: [PATCH] localization and srcp command --- addons/sourcemod/scripting/surftimer/commands.sp | 2 ++ addons/sourcemod/scripting/surftimer/replay.sp | 6 +++--- addons/sourcemod/translations/surftimer.phrases.txt | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/addons/sourcemod/scripting/surftimer/commands.sp b/addons/sourcemod/scripting/surftimer/commands.sp index 3222e7b..d902a1d 100644 --- a/addons/sourcemod/scripting/surftimer/commands.sp +++ b/addons/sourcemod/scripting/surftimer/commands.sp @@ -128,6 +128,8 @@ void CreateCommands() // WRCPs RegConsoleCmd("sm_wrcp", Client_Wrcp, "[surftimer] displays stage times for map"); RegConsoleCmd("sm_wrcps", Client_Wrcp, "[surftimer] displays stage times for map"); + RegConsoleCmd("sm_srcp", Client_Wrcp, "[surftimer] displays stage times for map"); + RegConsoleCmd("sm_srcps", Client_Wrcp, "[surftimer] displays stage times for map"); // QOL Commands RegConsoleCmd("sm_gb", Command_GoBack, "[surftimer] Go back a stage"); diff --git a/addons/sourcemod/scripting/surftimer/replay.sp b/addons/sourcemod/scripting/surftimer/replay.sp index c9a7846..2c65f83 100644 --- a/addons/sourcemod/scripting/surftimer/replay.sp +++ b/addons/sourcemod/scripting/surftimer/replay.sp @@ -460,7 +460,7 @@ public void PlayRecord(int client, int type, int style) Format(buffer, sizeof(buffer), "%s: %s (%s)", buffer2, g_szReplayName, g_szReplayTime); SetClientName(client, buffer); - Format(buffer, sizeof(buffer), "SR Replay (%s)", buffer2); + Format(buffer, sizeof(buffer), "MAP Replay (%s)", buffer2); CS_SetClientClanTag(client, buffer); } } @@ -471,7 +471,7 @@ public void PlayRecord(int client, int type, int style) Format(g_szWrcpReplayName[stage], sizeof(g_szWrcpReplayName), "%s", iFileHeader[view_as(FH_Playername)]); Format(buffer, sizeof(buffer), "S%d %s (%s)", stage, g_szWrcpReplayName[stage], g_szWrcpReplayTime[stage]); g_iCurrentlyPlayingStage = stage; - CS_SetClientClanTag(client, "SRCP Replay"); + CS_SetClientClanTag(client, "CP Replay"); SetClientName(client, buffer); } else @@ -481,7 +481,7 @@ public void PlayRecord(int client, int type, int style) if (style == 0) { Format(buffer, sizeof(buffer), "%s (%s)", g_szBonusName, g_szBonusTime); - CS_SetClientClanTag(client, "SRB Replay"); + CS_SetClientClanTag(client, "BONUS Replay"); SetClientName(client, buffer); } else diff --git a/addons/sourcemod/translations/surftimer.phrases.txt b/addons/sourcemod/translations/surftimer.phrases.txt index 3fa92b8..824c587 100644 --- a/addons/sourcemod/translations/surftimer.phrases.txt +++ b/addons/sourcemod/translations/surftimer.phrases.txt @@ -53,7 +53,7 @@ "AdvertWRCP" { "#format" "{1:s}" - "en" "{1} Type {lightgreen}!wrcp {default}to see your stage times" + "en" "{1} Type {lightgreen}!srcp {default}to see your stage times" } "AvgTime" {