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

Commit

Permalink
forced chat titles to style 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo H committed Apr 25, 2019
1 parent 4848dff commit d030af6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
Binary file modified addons/sourcemod/plugins/surftimer.smx
Binary file not shown.
14 changes: 1 addition & 13 deletions addons/sourcemod/scripting/surftimer/hooks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -487,20 +487,8 @@ public Action Say_Hook(int client, const char[] command, int argc)
}
else
{
char szChatRank[1024], szChatRank2[1024];
char szChatRank[1024];
Format(szChatRank, 1024, "%s", g_pr_chat_coloredrank[client]);
Format(szChatRank2, 1024, "%s", g_pr_chat_coloredrank_style[client]);
if (g_iCurrentStyle[client] > 0)
{
char szStyle[128];
Format(szStyle, sizeof(szStyle), g_szStyleAcronyms[g_iCurrentStyle[client]]);
StringToUpper(szStyle);
Format(szStyle, sizeof(szStyle), "%s-", szStyle);
ReplaceString(szChatRank2, sizeof(szChatRank2), "{style}", szStyle);
Format(szChatRank, sizeof(szChatRank), "%s", szChatRank2);
}
else
ReplaceString(szChatRank, sizeof(szChatRank), "{style}", "");

if (GetConVarBool(g_hCountry) && (GetConVarBool(g_hPointSystem)))
{
Expand Down
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/surftimer/timer.sp
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ public Action SetClanTag(Handle timer, any client)
char szTabRank[1024], szTabClanTag[1024];
Format(szTabRank, 1024, "%s", g_pr_chat_coloredrank[client]);
CRemoveColors(szTabRank, 1024);
Format(szTabClanTag, 1024, "%s | %s", g_szCountryCode[client], szTabRank); //temp. disabled due to

Format(szTabClanTag, 1024, "%s | %s", g_szCountryCode[client], szTabRank);
if ((GetUserFlagBits(client) & ADMFLAG_ROOT || GetUserFlagBits(client) & ADMFLAG_GENERIC)) CS_SetClientClanTag(client, szTabRank);
else CS_SetClientClanTag(client, szTabClanTag);
}
Expand Down

0 comments on commit d030af6

Please sign in to comment.