ABC: use default steamid for prints

This commit is contained in:
dogan 2020-09-17 14:48:38 +02:00
parent 95d3a1a9d5
commit 470d8f9780

View File

@ -466,7 +466,10 @@ public Action Command_Streak(int client, int argc)
int FormatStats(int client, int iTarget, char[] sBuf=0, int len=0) int FormatStats(int client, int iTarget, char[] sBuf=0, int len=0)
{ {
int iBuf = ConsoleFormat(client, sBuf, len, "[SM] Bunnyhop stats for %L\n", iTarget); int iUserID = GetClientUserId(iTarget);
char sAuth[32];
GetClientAuthId(iTarget, AuthId_Steam2, sAuth, sizeof(sAuth));
int iBuf = ConsoleFormat(client, sBuf, len, "[SM] Bunnyhop stats for %N<%d><%s>\n", iTarget, iUserID, sAuth);
CPlayer Player = g_aPlayers[iTarget]; CPlayer Player = g_aPlayers[iTarget];
@ -493,7 +496,10 @@ int FormatStats(int client, int iTarget, char[] sBuf=0, int len=0)
int FormatStreak(int client, int iTarget, int iStreak, char[] sBuf=0, int len=0) int FormatStreak(int client, int iTarget, int iStreak, char[] sBuf=0, int len=0)
{ {
int iBuf = ConsoleFormat(client, sBuf, len, "[SM] Bunnyhop streak %d for %L\n", iStreak, iTarget); int iUserID = GetClientUserId(iTarget);
char sAuth[32];
GetClientAuthId(iTarget, AuthId_Steam2, sAuth, sizeof(sAuth));
int iBuf = ConsoleFormat(client, sBuf, len, "[SM] Bunnyhop streak %d for %N<%d><%s>\n", iStreak, iTarget, iUserID, sAuth);
CPlayer Player = g_aPlayers[iTarget]; CPlayer Player = g_aPlayers[iTarget];
ArrayList hStreaks = Player.hStreaks; ArrayList hStreaks = Player.hStreaks;