samp.directory
← Scripts e bibliotecas

alexchwoj/octa-anticheat

Octa is a anticheat for San Andreas Multiplayer

Gamemode★ 15atualizado jun. de 2024Sem licençaPawn
Abrir no GitHub

Este repositório não tem arquivo de licença. Ele é público para leitura, mas isso sozinho não dá permissão para reutilizar.

README.md

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
#include <octa-anticheat>
#include <octa-damage>
  1. 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.

public OnCheatDetected(playerid, cheat_id, const cheat_name[], cheat_detections)
{
	static const fmt_str[] = "[{939393}%i{FFFFFF}] Cheat Detected: {EE5454}%s{FFFFFF} - Detections: {EFD755}%d";
	new string[sizeof(fmt_str) + (-2 + 64) + (-2 + 8)];

	strunpack(string, ANTICHEAT_INFO[cheat_id][ac_name], sizeof(string));
	format(string, sizeof(string), fmt_str, playerid, string, cheat_detections);

	SendClientMessageToAll(-1, string);
	ot_CheatKick(playerid, cheat_id);
	return 1;
}

Credits

Discord

anticheatpawnraknetsamp

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

alexchwoj/octa-anticheat: Gamemode de SA-MP | samp.directory