Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
localization and srcp command
Browse files Browse the repository at this point in the history
  • Loading branch information
totles committed Feb 14, 2019
1 parent bb5ec23 commit ec0abdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions addons/sourcemod/scripting/surftimer/commands.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/surftimer/replay.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand All @@ -471,7 +471,7 @@ public void PlayRecord(int client, int type, int style)
Format(g_szWrcpReplayName[stage], sizeof(g_szWrcpReplayName), "%s", iFileHeader[view_as<int>(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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/translations/surftimer.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
{
Expand Down

0 comments on commit ec0abdd

Please sign in to comment.