samp.directory
← Scripts e bibliotecas

XenoX352/anticheat-hytam-legam

This anti cheat only supports open.mp, it is made for everyone and is free.

Biblioteca★ 1atualizado jul. de 2026MITPawn
Abrir no GitHub

README.md

Hytam Legam Anti-Cheat

A comprehensive, open-source anti-cheat system designed for SA-MP and open.mp servers. Built with performance and precision in mind using modern libraries and packet analysis.


Features

  • Player Integrity
    Speed hack, teleport, CJ run, airbreak (onfoot & vehicle), godmode, health/armour/ammo manipulation, invisibility, fake spawn, fake kill, animation sync data abuse.

  • Weapon & Combat
    Invalid weapons, rapid fire, aimlock detection (angle snap + distance snap).

  • Server & Network
    NoPS (packet flood), crash attempt (invalid RPC), chat spam.

  • Vehicle Exploits
    Vehicle health hack, instant repair, airbreak while driving, /mcar (vehicle damage without collision).

  • Stealer/Mod Loader Detection
    Moonloader and Monetloader blocking on connect.

  • Mapping & TextDraw Stealer
    Object spam detection to prevent mass mapping rip.

  • Webhook Integration
    Sends cheat detection alerts directly to a Discord channel via webhook.

  • Admin Control Panel
    /acsettingslegam dialog to toggle each detection module on or off in real-time.

  • Extensible
    Easily add new cheat checks by hooking into the existing framework.


Dependencies

Plugin / IncludePurpose
open.mpServer core
PawnPlusDynamic values, JSON creation
YSI (y_hooks, y_commands)Hook system, command processing
Pawn.RakNetLow-level packet interception
vehicle-streamerVehicle streamer (by ahmedamyr)
pawn-requestsHTTP/JSON webhook calls

All dependencies are free and widely used in the SA-MP/open.mp community.


Installation

  1. Download or clone this repository into your pawno/include folder.

  2. Ensure all required plugins and includes are loaded in your server.cfg:

    1. Add #include <anticheat_hytam_legam> to your gamemode or filterscript.
  3. Set your Discord webhook URL in the script (define AC_WEBHOOK_URL).

  4. Compile and run.

No additional database configuration is required; all detection data is stored per-player in memory.


Configuration

Edit the following defines at the top of the include to match your server’s needs:

DefineDefaultDescription
AC_MAX_HEALTH100.0Maximum valid health value
AC_MAX_ARMOUR100.0Maximum valid armour
AC_MAX_VEHICLE_HEALTH1000.0Maximum vehicle health
AC_MAX_MONEY999999999Allowed money limit (prevents money hacks)
AC_MAX_PING500Maximum ping before kick
AC_SPRINT_SPEED45.0Maximum onfoot speed (m/s)
AC_VEHICLE_SPEED300.0Maximum vehicle speed (m/s)
AC_AIMLOCK_DISTANCE150.0Max snap distance for aimbot
AC_AIMLOCK_ANGLE10.0Max angle difference for aim snap
AC_NOPS_THRESHOLD50Packets per second before NoPS flag
AC_MAX_PLAYER_OBJECTS2000Max allowed player objects
AC_WEBHOOK_URL(your url)Discord webhook for alerts

You can toggle any check at runtime via the admin dialog, and changes are applied instantly without a server restart.


Usage

Admin Command

  • /acsettingslegam - Opens a list dialog to enable/disable each cheat module.
    Only available to RCON admins.

Automatic Detection

All checks run automatically each OnPlayerUpdate, OnPlayerWeaponShot, OnPlayerDeath, and relevant packet hooks. When a cheat is detected:

  1. The player receives a warning.
  2. After AC_MAX_WARNINGS (default 5) warnings, the player is kicked.
  3. Severe cheats (teleport, airbreak, etc.) result in an immediate ban.

A detailed log is written to anticheat.log and sent to Discord.


Detection Modules

#Module NameDescription
0Speed HackOver-limit movement speed
1Teleport HackLarge position changes without valid vehicle/state
2Weapon HackInvalid or modded weapons
3Ammo HackExcessive ammo (except minigun)
4Health HackSudden health increase
5God ModeNo health reduction after damage
6Aim LockAuto-aim snapping to targets
7Packet Flood (NoPS)Too many network packets per second
8Crash AttemptMalformed RPC to crash the server
9Airbreak (Onfoot)Floating/moving through air on foot
10Airbreak (Vehicle)Flying with vehicles
11Chat SpamRapid message flooding
12Vehicle Damage HackDamaging vehicle without collision
13CJ RunSpeed hack with CJ run animation
14Rapid FireFaster than weapon fire rate
15Mapping StealerSpawning too many objects quickly
16InvisibilityBeing invisible without proper state
17Fake KillKilling from impossible distances
18Fake SpawnDying without a valid spawn
19Sync Data HackInvalid animation changes
20Moonloader BlockerBlocks Moonloader users
21Monetloader BlockerBlocks Monetloader users
22Wallhack(Future: visual-based detection)
23Pickup Hack(Future)
24Tuning Hack(Future)

Customization

To add a new cheat check:

  1. Add a new constant in the enum list (e.g., AC_CHECK_CUSTOM).
  2. Add its name to g_acCheckNames.
  3. Place the detection logic inside the appropriate hook (e.g., hook OnPlayerUpdate).
  4. Call AC_OnCheatDetected(playerid, AC_CHECK_CUSTOM, "details") when triggered.
  5. The admin dialog and toggle system will automatically include your new module.

Logging & Discord Alerts

The system writes every detection to anticheat.log with timestamps. Additionally, a JSON payload is sent to the configured Discord webhook, allowing real-time monitoring by admins.

Example Discord message:


License

This anti-cheat is open source and available under the MIT License. You are free to use, modify, and distribute it in your own projects, commercial or otherwise. See the LICENSE file for more details.


Credits

  • Developed by the Hytam Legam team.
  • Uses: open.mp, PawnPlus, YSI, Pawn.RakNet, pawn-requests, vehicle-streamer.

Contributions, issues, and pull requests are welcome!

Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página