Skip to content

Commit

Permalink
Merge pull request darkerz7#60 from Rushaway/master
Browse files Browse the repository at this point in the history
feat: switch front-end to Steam3 format
  • Loading branch information
darkerz7 authored Nov 1, 2024
2 parents 11286f1 + 47d80b9 commit 8664fe0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions addons/sourcemod/scripting/entwatch_dz.sp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Plugin myinfo =
name = "EntWatch",
author = "DarkerZ[RUS], AgentWesker, notkoen, sTc2201, maxime1907, Cmer, .Rushaway, Dolly",
description = "Notify players about entity interactions.",
version = "3.DZ.67",
version = "3.DZ.68",
url = "dark-skill.ru"
};

Expand Down Expand Up @@ -440,10 +440,12 @@ public void OnClientPutInServer(int iClient)
char sSteamID[32];
GetClientAuthId(iClient, AuthId_Steam2, sSteamID, sizeof(sSteamID));
FormatEx(g_sSteamIDs[iClient], sizeof(g_sSteamIDs[]), "%s", sSteamID);

GetClientAuthId(iClient, AuthId_Steam3, sSteamID, sizeof(sSteamID));
FormatEx(g_sSteamIDs_short[iClient], sizeof(g_sSteamIDs_short[]), "%s", sSteamID);
ReplaceString(g_sSteamIDs_short[iClient], sizeof(g_sSteamIDs_short[]), "STEAM_", "", true);
ReplaceString(g_sSteamIDs_short[iClient], sizeof(g_sSteamIDs_short[]), "[", "", true);
ReplaceString(g_sSteamIDs_short[iClient], sizeof(g_sSteamIDs_short[]), "]", "", true);
g_iUserIDs[iClient] = GetClientUserId(iClient);

// No need to run the next functions for fake clients
if (IsFakeClient(iClient))
return;
Expand Down
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/entwatch_logs_manager.sp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Plugin myinfo =
name = "EntWatch Logs Manager",
author = "DarkerZ[RUS], .Rushaway",
description = "Allows you to manage logs from the plugin EntWatch.",
version = "1.DZ.3",
version = "1.DZ.4",
url = "dark-skill.ru"
};

Expand Down Expand Up @@ -174,7 +174,7 @@ public void OnLibraryRemoved(const char[] sName)
public void OnClientPostAdminCheck(int iClient)
{
char sSteamID[32];
GetClientAuthId(iClient, AuthId_Steam2, sSteamID, sizeof(sSteamID), false);
GetClientAuthId(iClient, AuthId_Steam3, sSteamID, sizeof(sSteamID), false);
FormatEx(g_sSteamIDs[iClient], sizeof(g_sSteamIDs[]), "%s", sSteamID);
}

Expand Down

0 comments on commit 8664fe0

Please sign in to comment.