From 52c6cb87c92d1338ee2e921ece925b94eea6045f Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 11 Jun 2022 20:06:10 +0200 Subject: [PATCH] added oryx forward for detection --- Discord_UNLOZE/scripting/Discord_UNLOZE.sp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Discord_UNLOZE/scripting/Discord_UNLOZE.sp b/Discord_UNLOZE/scripting/Discord_UNLOZE.sp index f95014eb..0c0edb39 100644 --- a/Discord_UNLOZE/scripting/Discord_UNLOZE.sp +++ b/Discord_UNLOZE/scripting/Discord_UNLOZE.sp @@ -14,6 +14,7 @@ #tryinclude #tryinclude +#tryinclude #tryinclude #pragma newdecls required @@ -738,6 +739,26 @@ public void CallAdmin_OnReportHandled(int client, int id) else Discord_POST(DISCORD_CALLADMIN_WEBHOOKURL, sMessage, true, sUsername, false, "", false); } +//' + +public Action Oryx_OnTrigger(int client, int &level, char[] cheat) +{ + char sUsername[MAX_NAME_LENGTH]; + GetClientName(client, sUsername, sizeof(sUsername)); + + char currentMap[64]; + GetCurrentMap(currentMap, sizeof(currentMap)); + + char sMessage[4096]; + Format(sMessage, sizeof(sMessage), "```%s - Tick: %d``````TRIGGER LEVEL: %i\n%s```", currentMap, GetGameTickCount(), level, cheat); + + if (g_sAvatarURL[client][0] != '\0') + Discord_POST(DISCORD_ANTIBHOPCHEAT_WEBHOOKURL, sMessage, true, sUsername, true, g_sAvatarURL[client], false); + else + Discord_POST(DISCORD_ANTIBHOPCHEAT_WEBHOOKURL, sMessage, true, sUsername, false, "", false); + + return Plugin_Continue; +} public void AntiBhopCheat_OnClientDetected(int client, char[] sReason, char[] sStats) {