Premium Реклама Spotlight Bundles Boost Банери Кредити
Основно Начало Сървъри Marketplace Форум Сървъри
Общности Хостинг Добави Auction Boost
Ресурси
Библиотеки Карти Видеа Магазин Bundles
Инструменти
Builder Demo CFG HUD
AMXX API
Вход Регистрация
TOP SERVER
[IG] Easy Surf | Ramp Fix | RANKS | REPLAYS
Counter-Strike 1.6
surf_flyin_fortress
40.160.19.36:27015
18.05 18:49
8/64
186ms
/ Библиотеки / reaimdetector.inc

reaimdetector.inc

.inc 2.8 KB 160 реда 04.04.2026
Pawn / AMX Mod X
#if defined _reaimdetector_included
	#endinput
#endif

#define _reaimdetector_included

#if AMXX_VERSION_NUM >= 175
	#pragma reqlib reaimdetector
	#if !defined AMXMODX_NOAUTOLOAD
		#pragma loadlib reaimdetector
	#endif
#else
	#pragma library reaimdetector
#endif

enum NotifyType
{
	WARNING,
	DETECT
};

enum PunishType
{
	AIMBOT,
	NOSPREAD
};

enum ResetType
{
	KILLED,
	SHOTS,
	TIME
};

enum ADSet
{
	AimDetection,
	AimSens,
	AimMultiWarns,
	AimNotifyWarns,
	AimMaxWarns,
	AimShotsReset,
	AimKillsReset,
	AimTimeReset,
	NoSpreadDetection,
	NoSpreadNotifyWarns,
	NoSpreadMaxWarns,
	SendProtectionWeapon,
	CrashCheat
};

enum ADClient
{
	AimCheck,
	AimWarn,
	AimShots,
	AimKills,
	AimTimeTask,
	NoSpreadCheck,
	NoSpreadWarn
};

/*
* Module initialization.
*
* @param Version
* @param Map
*
* @noreturn
*/
forward ad_init(const Version[], const Map[]);

/*
* Notifies about warnings the player, also detection aim.
*
* @param index			Client index
* @param pType			Punish type
* @param nType			Notify type
* @param Kills			The amount of kills a enemies
* @param Shots			The amount of clean shots
* @param Warn			The current amount of warnings for player
*
* @noreturn
*/
forward ad_notify(const index, const PunishType:pType, const NotifyType:nType, const Kills, const Shots, const Warn);

/*
* Reset the player warnings.
*
* @param index			Client index
* @param rType			Reset type
* @param Kills			The amount of kills a enemies
* @param Shots			The amount of clean shots
*
* @noreturn
*/
forward ad_aim_reset_warn(const index, const ResetType:rType, const Kills, const Shots);

/*
* Returns setting from config.
*
* @param Type		enum ADSet
*
*/
native ad_get_cfg(const ADSet:Type);

/*
* Sets setting config.
*
* @param Type		enum ADSet
* @param Value		Type int
*
* @noreturn
*
*/
native ad_set_cfg(const ADSet:Type, const Value);

/*
* Returns a data of the player.
*
* @param index		Client index
* @param Type		enum ADClient
*
*/
native ad_get_client(const index, const ADClient:Type);

/*
* Sets a data of the player.
*
* @param index		Client index
* @param Type		enum ADClient
* @param Value		Type int
*
* @noreturn
*
*/
native ad_set_client(const index, const ADClient:Type, const Value);

#define REAIMDETECTOR_VERSION			"0.2.2"
#define REAIMDETECTOR_VERSION_MAJOR	4
#define REAIMDETECTOR_VERSION_MINOR	0

public __reaimdetector_version_check(const majorVersion, const minorVersion)
{
	if (majorVersion != REAIMDETECTOR_VERSION_MAJOR)
	{
		new temp[512];
		formatex(temp, sizeof temp - 1, "[ReAimDetector]: Api major version mismatch; expected %d, real %d", REAIMDETECTOR_VERSION_MAJOR, majorVersion);
		set_fail_state(temp);
		return;
	}

	if (minorVersion < REAIMDETECTOR_VERSION_MINOR)
	{
		new temp[512];
		formatex(temp, sizeof temp - 1, "[ReAimDetector]: Api minor version mismatch; expected at least %d, real %d", REAIMDETECTOR_VERSION_MINOR, minorVersion);
		set_fail_state(temp);
		return;
	}
}
РЕКЛАМИРАЙ ПРИ НАС!
AMXX-BG.INFO
КАК ДА ИЗПОЛЗВАМ
Добави в началото на .sma файла:
#include <reaimdetector>
1. Изтегли
Свали файла от бутона по-горе
2. Копирай
Постави в scripting/include/
3. Включи
Добави #include директивата
4. Компилирай
Използвай amxxpc или scripting/compile.exe
PrivateServ.NET