项目作者: RealAtom

项目描述 :
Octa is a anticheat for San Andreas Multiplayer
高级语言: Pawn
项目地址: git://github.com/RealAtom/octa-anticheat.git
创建时间: 2020-04-02T14:55:57Z
项目社区:https://github.com/RealAtom/octa-anticheat

开源协议:

下载


logo
Octa is a powerful anti-cheat service that counteracts cheating in San Andreas Multiplayer, using Pawn.RakNet, which makes it faster and more effective than any classic anti-cheat.

⚠️ Warning: this project is no longer supported, I’m not going to update it anymore.

Implementation

  1. Download the latest version in releases
  2. Put the Octa’s Files file in pawno/include
  3. Enter this line in your initial script
    1. #include <octa-anticheat>
    2. #include <octa-damage>
  4. Install Pawn.RakNet

Usage

Octa calls a function when a cheating attempt is detected, this function contains the identifier number of the cheat and ID of the player. In the test.pwn file you have a usage example.

  1. public OnCheatDetected(playerid, cheat_id, const cheat_name[], cheat_detections)
  2. {
  3. static const fmt_str[] = "[{939393}%i{FFFFFF}] Cheat Detected: {EE5454}%s{FFFFFF} - Detections: {EFD755}%d";
  4. new string[sizeof(fmt_str) + (-2 + 64) + (-2 + 8)];
  5. strunpack(string, ANTICHEAT_INFO[cheat_id][ac_name], sizeof(string));
  6. format(string, sizeof(string), fmt_str, playerid, string, cheat_detections);
  7. SendClientMessageToAll(-1, string);
  8. ot_CheatKick(playerid, cheat_id);
  9. return 1;
  10. }

Credits

Discord

Hyaxe