added oryx forward for detection

This commit is contained in:
jenz 2022-06-11 20:06:10 +02:00
parent db85191b35
commit 52c6cb87c9

View File

@ -14,6 +14,7 @@
#tryinclude <AntiBhopCheat>
#tryinclude <calladmin>
#tryinclude <oryx>
#tryinclude <entWatch_restrictions>
#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)
{