sourcemod 1.13 upgrade. moved all plugins from steamworks to ripext. added smjanson and asyncsocket.inc an extra time so its easier to find. updated plugins that would not compile with 1.13

This commit is contained in:
jenz
2026-09-22 01:55:09 +02:00
parent 789b8ebef9
commit 2947bef434
17 changed files with 2131 additions and 462 deletions
+12 -7
View File
@@ -426,9 +426,12 @@ NotifyAdmins(int client, const char[] sReason)
if(IsClientInGame(i) && !IsFakeClient(i) && CheckCommandAccess(i, "sm_stats", ADMFLAG_GENERIC))
{
CPrintToChat(i, "{green}[SM]{default} %L has been detected for {red}%s{default}, please check your console!", client, sReason);
FormatStats(i, client);
char sBuffer[2000];
FormatStats(i, client, sBuffer, 0);
PrintToConsole(client, "%s", "\n");
FormatStreak(i, client, 0);
int len = FormatStats(-1, client, sBuffer, sizeof(sBuffer));
sBuffer[len++] = '\n';
FormatStreak(i, client, 0, sBuffer[len], sizeof(sBuffer) - len);
}
}
@@ -464,12 +467,13 @@ public Action Command_Stats(int client, int argc)
for(int i = 0; i < iTargetCount; i++)
{
FormatStats(client, iTargets[i]);
char sBuffer[2000];
FormatStats(i, client, sBuffer, 0);
PrintToConsole(client, "%s", "\n");
for(int j = 0; j < 3; j++)
{
FormatStreak(client, iTargets[i], j);
FormatStreak(client, iTargets[i], j, sBuffer[0], sizeof(sBuffer) - 0);
PrintToConsole(client, "%s", "\n");
}
}
@@ -509,13 +513,14 @@ public Action Command_Streak(int client, int argc)
for(int i = 0; i < iTargetCount; i++)
{
FormatStreak(client, iTargets[i], iStreak);
char sBuffer[2000];
FormatStreak(client, iTargets[i], iStreak, sBuffer[0], 0);
}
return Plugin_Handled;
}
int FormatStats(int client, int iTarget, char[] sBuf=0, int len=0)
int FormatStats(int client, int iTarget, char[] sBuf, int len=0)
{
int iUserID = GetClientUserId(iTarget);
char sAuth[32];
@@ -545,7 +550,7 @@ int FormatStats(int client, int iTarget, char[] sBuf=0, int len=0)
return iBuf;
}
int FormatStreak(int client, int iTarget, int iStreak, char[] sBuf=0, int len=0)
int FormatStreak(int client, int iTarget, int iStreak, char[] sBuf, int len=0)
{
int iUserID = GetClientUserId(iTarget);
char sAuth[32];