diff --git a/Discord_UNLOZE/scripting/Discord_UNLOZE.sp b/Discord_UNLOZE/scripting/Discord_UNLOZE.sp index 8dd450d2..7abc13de 100644 --- a/Discord_UNLOZE/scripting/Discord_UNLOZE.sp +++ b/Discord_UNLOZE/scripting/Discord_UNLOZE.sp @@ -18,6 +18,7 @@ #tryinclude #tryinclude #tryinclude +#tryinclude #pragma newdecls required @@ -674,6 +675,26 @@ public Action OnClientSayCommand(int client, const char[] sCommand, const char[] return Plugin_Continue; } +public void KickEliteHackDetectorPost(int client) +{ + char sClientName[MAX_NAME_LENGTH]; + char sClientID[21]; + GetClientName(client, sClientName, sizeof(sClientName)); + GetClientAuthId(client, AuthId_Steam2, sClientID, sizeof(sClientID)); + char currentMap[64]; + GetCurrentMap(currentMap, sizeof(currentMap)); + char sMessage[1900]; + char sAuthID64[32]; + if (!Steam32IDtoSteam64ID(sClientID, sAuthID64, sizeof(sAuthID64))) + return; + + Format(sMessage, sizeof(sMessage), "https://steamcommunity.com/profiles/%s\nName: %s\nSteamID: %s\nClient got kicked for potentially using ZE elite hack. might have squashed the guy crashing the server. map was: %s", sAuthID64, sClientName, sClientID, currentMap); + if (g_sAvatarURL[client][0] != '\0') + Discord_POST(DISCORD_BAN_DETECTOR, sMessage, true, sClientName, true, g_sAvatarURL[client], false); + else + Discord_POST(DISCORD_BAN_DETECTOR, sMessage, true, sClientName, false, "", false); +} + public void BanDetectorPost(int client, const char[] detected_sourceban) { char sClientName[MAX_NAME_LENGTH];