![]() |
|
[Library] omp-aegis v1.0.0 - 4-Layer Server-Side Anti-Cheat (open.mp & SA:MP) - 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] omp-aegis v1.0.0 - 4-Layer Server-Side Anti-Cheat (open.mp & SA:MP) (/showthread.php?tid=6611) |
omp-aegis v1.0.0 - 4-Layer Server-Side Anti-Cheat (open.mp & SA:MP) - Raihanprnwd - 2026-12-05 omp-aegis
Authoritative 4-Layer Server-Side Anti-Cheat Include & Filterscript for open.mp & SA:MP GitHub Repository | Full Documentation | Version: 1.0.0 | License: MIT Overview omp-aegis is a modular, drop-in server-side anti-cheat library (and optional standalone filterscript) built for open.mp and SA:MP 0.3.7 / 0.3.DL. Instead of relying solely on periodic timers or client-reported stats, it combines four distinct validation layers—pre-engine RakNet packet filtering, server-side combat authority, ALS-hooked state tracking, and 3D world collision raycasting—into a single include with full ALS native and callback chaining. 4-Layer Architecture
26 Built-In Protection Modules Combat, Stats & Inventory
Movement & 3D World (ColAndreas)
Vehicle & Sync Integrity
Network & Exploits
Dependencies
Quote:Important Note for open.mp Users: Installation Via sampctl (Recommended): Code: sampctl package install RaihanPrnwd/omp-aegisManual Setup: Place include/omp_aegis.inc into your include folder, install the dependency includes/plugins, and load pawnraknet and ColAndreas in config.json (legacy_plugins) or server.cfg. Quick Start (Gamemode Integration) Including <omp_aegis> directly in your gamemode is recommended so all ALS native hooks track server-side changes automatically: Code: #include <open.mp>
#include <Pawn.RakNet>
#include <colandreas>
#include <weapon-config>
// Optional: tune compile-time thresholds before including omp_aegis
#define AEGIS_MAX_PING (350)
#define AEGIS_DEFAULT_GRACE_MS (2000)
#include <omp_aegis>
public OnGameModeInit()
{
Aegis_SetCbugAllowed(false);
Aegis_SetCheatAction(AEGIS_CHEAT_CRASHER, AEGIS_ACTION_BAN);
Aegis_SetCheatMaxStrikes(AEGIS_CHEAT_WALLSHOT, 3);
return 1;
}
public OnAegisCheatDetected(playerid, AEGIS_CHEAT:cheat, strikes, maxStrikes, const details[])
{
new name[MAX_PLAYER_NAME], cheatName[32];
GetPlayerName(playerid, name, sizeof(name));
Aegis_GetCheatName(cheat, cheatName, sizeof(cheatName));
printf("[Aegis] %s (%d) | %s (%d/%d) | %s", name, playerid, cheatName, strikes, maxStrikes, details);
// Return 1 to execute Aegis's configured action (WARN / REVERT / KICK / BAN + quarantine).
// Return 0 to suppress the default action and handle it in your gamemode.
return 1;
}A ready-to-use standalone filterscript (filterscripts/omp_aegis_fs.pwn) with RCON admin commands (/aegis, /aegisstatus, /aegisexempt, /aegisquarantine, /aegistoggle, /aegiscbug) and CallRemoteFunction bridges is also included in the repository. Runtime API Highlights Code: // Per-module policy control
Aegis_SetCheatEnabled(AEGIS_CHEAT:cheat, bool:enabled);
Aegis_SetCheatAction(AEGIS_CHEAT:cheat, AEGIS_ACTION:action); // NONE, WARN, REVERT, KICK, BAN
Aegis_SetCheatMaxStrikes(AEGIS_CHEAT:cheat, strikes);
Aegis_GetCheatName(AEGIS_CHEAT:cheat, output[], size = sizeof(output));
// Player control & inspection
Aegis_SetPlayerExempt(playerid, bool:exempt); // Whitelist admins or minigames
Aegis_QuarantinePlayer(playerid, bool:toggle); // Drop all sync packets (+ SKY freeze)
Aegis_SetPlayerGrace(playerid, ms); // Temporary sync grace window
Aegis_GetPlayerStrikes(playerid, AEGIS_CHEAT:cheat);
Aegis_ResetPlayerStrikes(playerid);
Aegis_GetPlayerMoney(playerid);
// Subsystem bridges
Aegis_SetCbugAllowed(bool:allowed, playerid = INVALID_PLAYER_ID);
bool:Aegis_IsColAndreasReady();
bool:Aegis_IsSkyActive();Full compile-time macro list, runnable example, and self-check suite are documented in the README. Security Scope & Limitations omp-aegis is strictly a server-side anti-cheat. It covers cheat vectors verifiable through network packets, authoritative server state, combat physics, and 3D map geometry. Purely client-side visual modifications (such as ESP/nametag wallhacks or subtle aim assist staying within natural camera cones) cannot be reliably detected from server packets alone without a dedicated client-side anti-cheat. Download & Source
Credits
|