From 993bf551d85fb3a5c73f2dbf0d8d8976daaaa2b4 Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 11 Jun 2022 23:00:53 +0200 Subject: [PATCH] reformatted the message to include name and steamID --- Discord_UNLOZE/scripting/Discord_UNLOZE.sp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Discord_UNLOZE/scripting/Discord_UNLOZE.sp b/Discord_UNLOZE/scripting/Discord_UNLOZE.sp index 0c0edb39..2d57f673 100644 --- a/Discord_UNLOZE/scripting/Discord_UNLOZE.sp +++ b/Discord_UNLOZE/scripting/Discord_UNLOZE.sp @@ -749,8 +749,10 @@ public Action Oryx_OnTrigger(int client, int &level, char[] cheat) char currentMap[64]; GetCurrentMap(currentMap, sizeof(currentMap)); + char sAuthID[32]; + GetClientAuthId(client, AuthId_Steam2, sAuthID, sizeof(sAuthID), false); char sMessage[4096]; - Format(sMessage, sizeof(sMessage), "```%s - Tick: %d``````TRIGGER LEVEL: %i\n%s```", currentMap, GetGameTickCount(), level, cheat); + Format(sMessage, sizeof(sMessage), "```%s - Tick: %d``````NAME: %N\nSTEAMID: %s\nTRIGGER LEVEL: %i\n%s```", currentMap, GetGameTickCount(), client, sAuthID, level, cheat); if (g_sAvatarURL[client][0] != '\0') Discord_POST(DISCORD_ANTIBHOPCHEAT_WEBHOOKURL, sMessage, true, sUsername, true, g_sAvatarURL[client], false);