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) {