0% found this document useful (0 votes)
13 views2 pages

AntiCheatMadeByIres (ITS MID)

The document outlines a function that bans players for cheating in a game by checking for specific cheat folders. If a cheat folder is detected, the player is banned for a specified duration and a notification is sent to a Discord webhook. The function includes different ban durations based on the game paths identified and logs the status of the notification attempt.

Uploaded by

millardkareem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

AntiCheatMadeByIres (ITS MID)

The document outlines a function that bans players for cheating in a game by checking for specific cheat folders. If a cheat folder is detected, the player is banned for a specified duration and a notification is sent to a Discord webhook. The function includes different ban durations based on the game paths identified and logs the status of the notification attempt.

Uploaded by

millardkareem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

handlers.

AntiDll = function(args) { // made by ires

const cheatFolders = ["Mods", "melonloader", "Plugins"];


// Alex give creds or your game will be cooked by ires

const gamePath1 = "/storage/emulated/0/MelonLoader/PackageName/Mods";

const gamePath2 = "/storage/emulated/0/PackageName//files/Mods";

const gamePath3 = "/sdcard/Android/data/PackageName//files/Mods";

var playerData = server.GetUserAccountInfo({


PlayFabId: currentPlayerId
}).UserInfo;

var customId = playerData.CustomIdInfo && playerData.CustomIdInfo.CustomId;

if (hasCheatFolder) {
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1385,
Reason: "CHEATING"

}]
};
if (gamePath1)
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1385,
Reason: "CHEATING"
}]
};
if (gamePath2)
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1385,
Reason: "CHEATING"
}]
};
if (gamePath3)
var banRequest = {
Bans: [{
PlayFabId: currentPlayerId,
DurationInHours: 1433,
Reason: "ILLEGAL CHEATING"
}]
};
server.BanUsers(banRequest);

var contentBody = {
"content": null,
"embeds": [
{
"title": "Modding Incoming",
"description": "**Custom ID:** " + customId + "\n**Player ID:**
" + currentPlayerId + "\n**Reason:** Cheating",
"color": 16711680,
"author": {
"name": "Modder"
}
}
],
"attachments": []
};

var webhookURL = "Url";


var method = "POST";
var contentType = "application/json";
var headers = {};

var response = http.request(webhookURL, method,


JSON.stringify(contentBody), contentType, headers);

if (response.status >= 200 && response.status < 300) {


log.info("Ban notification sent to Discord webhook.");
} else {
log.error("Error sending ban notification to Discord: " +
response.status);
}

return { message: "User banned for 1385 hours due to an cheating ID." };
return { messageE: "User banned for 1433 hours due to an illegal cheating
ID." };
} else {
return { message: "Player Has Been Banned." };
}
};

You might also like