Skip to content

Commit

Permalink
fix: switch to steam auth id 3 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway authored Nov 2, 2024
1 parent ce367ae commit 5e4240e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/sourcemod/scripting/ButtonNotifier.sp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public Plugin myinfo =
name = "Button & Triggers Notifier",
author = "Silence, maxime1907, .Rushaway",
description = "Logs button and trigger presses to the chat.",
version = "2.0.3",
version = "2.0.4",
url = ""
};

Expand Down Expand Up @@ -297,7 +297,9 @@ public void ButtonPressed(const char[] output, int caller, int activator, float
FormatEx(entity, sizeof(entity), "button #%d", caller);

char userid[64];
GetClientAuthId(activator, AuthId_Steam2, userid, sizeof(userid), false);
GetClientAuthId(activator, AuthId_Steam3, userid, sizeof(userid), false);
ReplaceString(userid, sizeof(userid), "[", "", false);
ReplaceString(userid, sizeof(userid), "]", "", false);
Format(userid, sizeof(userid), "#%d|%s", GetClientUserId(activator), userid);
ReplaceString(userid, sizeof(userid), "STEAM_", "", true);

Expand Down

0 comments on commit 5e4240e

Please sign in to comment.