open.mp forum
[Library] Hata Anti-Cheat (H-AC) - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13)
---- Forum: Libraries (https://forum.open.mp/forumdisplay.php?fid=31)
---- Thread: [Library] Hata Anti-Cheat (H-AC) (/showthread.php?tid=1985)



Hata Anti-Cheat (H-AC) - Hata - 2021-05-07

List of Fixed Cheats;

Code:
Silent Aimbot
Vehicle Repair Hack
Screen Flickering
Car Troller?
Surfing Invisible
Airbreak
Seat ID Crasher
Speed Hack (On Foot/Driver)
Troll Animation
Animation Invisible
Fly Hack?(On Foot)
Rage Shot
Trailer Crasher
Weapon Hack //To be developed.


Include:?H-AC.inc

Cheat Detection Public (To be added to gamemode);

Code:
public OnPlayerCheatDetected(playerid, code)
{
? ? new cheatname[30], string[128];
? ? switch (code)
? ? {
? ? ? ? case 0: cheatname = "Silent Aimbot";
? ? ? ? case 1: cheatname = "Vehicle Repair Hack";
? ? ? ? case 2: cheatname = "Screen Flickering";
? ? ? ? case 3: cheatname = "Car Troller";
? ? ? ? case 4: cheatname = "Surfing Invisible";
? ? ? ? case 5: cheatname = "Airbreak";
? ? ? ? case 6: cheatname = "Seat Crasher";
? ? ? ? case 7: cheatname = "Speed Hack";
? ? ? ? case 8: cheatname = "Troll Animation";
? ? ? ? case 9: cheatname = "Animation Invisible";
? ? ? ? case 10: cheatname = "Fly Hack";
? ? ? ? case 11: cheatname = "Rage Shot";
? ? ? ? case 12: cheatname = "Trailer Crasher";
? ? ? ? case 13: cheatname = "Weapon Hack";
? ? }
? ? format(string, sizeof(string), "~w~%s detected by Hata Anti-Cheat", cheatname);
? ? GameTextForAll(string, 1000, 3);
? ? Kick(playerid);
? ? return 1;
}