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

Commit

Permalink
prob. a clan tag fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo H committed Apr 23, 2019
1 parent d4eedda commit e0012df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 3 additions & 1 deletion addons/sourcemod/scripting/surftimer/hooks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ public Action Say_Hook(int client, const char[] command, int argc)
char szStyle[128];
Format(szStyle, sizeof(szStyle), g_szStyleAcronyms[g_iCurrentStyle[client]]);
StringToUpper(szStyle);
Format(szChatRank, 154, "[%s] %s", szStyle, szChatRank2);
Format(szStyle, sizeof(szStyle), "%s-", szStyle);
ReplaceString(szChatRank2, sizeof(szChatRank2), "{style}", szStyle);
Format(szChatRank, sizeof(szChatRank), "%s", szChatRank2);
}
else
ReplaceString(szChatRank, sizeof(szChatRank), "{style}", "");
Expand Down
16 changes: 15 additions & 1 deletion addons/sourcemod/scripting/surftimer/timer.sp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,21 @@ public Action SetClanTag(Handle timer, any client)
else
ReplaceString(tag, sizeof(tag), "{style}", "");

CS_SetClientClanTag(client, tag);


/*
Format(szStyle, sizeof(szStyle), "%s-", szStyle);
ReplaceString(szChatRank2, sizeof(szChatRank2), "{style}", szStyle);
Format(szChatRank, sizeof(szChatRank), "%s", szChatRank2);
}
else
ReplaceString(szChatRank, sizeof(szChatRank), "{style}", "");
*/
char szTabRank[1024];
Format(szTabRank, 1024, "%s", g_pr_chat_coloredrank[client]);
CRemoveColors(szTabRank, 1024);

CS_SetClientClanTag(client, szTabRank);
}
else
{
Expand Down

0 comments on commit e0012df

Please sign in to comment.