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
/ Библиотеки / reapi_rechecker.inc

reapi_rechecker.inc

to comparison with the specified hash value

.inc 1.6 KB 59 реда 04.04.2026
Pawn / AMX Mod X
#if defined _reapi_rechecker_included
	#endinput
#endif
#define _reapi_rechecker_included

enum ResourceType
{
	RES_TYPE_NONE = 0,
	RES_TYPE_EXISTS,    // to comparison with the specified hash value
	RES_TYPE_MISSING,   // check it missing file on client
	RES_TYPE_IGNORE,    // ignore the specified hash value
	RES_TYPE_HASH_ANY,  // any file with any the hash value
};

enum ReCheckerFunc
{
	/*
	* Description:   -
	* Params:        (const client, const filename[], const cmd[], const ResourceType:type, const responseHash, bool:isBreak)
	*/
	RC_FileConsistencyProcess = BEGIN_FUNC_REGION(rechecker),

	/*
	* Description:   -
	* Params:        (const client)
	*/
	RC_FileConsistencyFinal,

	/*
	* Description:   -
	* Params:        (const client, const filename[], const cmd[], const responseHash)
	*/
	RC_CmdExec,

	// [...]
};

/*
* Send request the file for the client to get hash
*
* @param file           The file (Can contain a relative path to the file)
* @param function       The forward to call
* @param type           The request type, can be only RES_TYPE_EXISTS, RES_TYPE_MISSING or RES_TYPE_HASH_ANY
* @param hash           Hash of file to request.
*
* @return               Returns a hook handle. Use UnRegisterQueryFile to remove the forward
*/
native QueryFileHook:RegisterQueryFile(const file[], const function[], const ResourceType:type, const hash = -1);

/*
* Unregister the forward.
* Use the return value from RegisterQueryFile as the parameter here!
*
* @param hook           The hook to remove
*
* @return               Returns true if the hook is successfully removed, otherwise false
*/
native bool:UnRegisterQueryFile(QueryFileHook:hook);
РЕКЛАМИРАЙ ПРИ НАС!
AMXX-BG.INFO
КАК ДА ИЗПОЛЗВАМ
Добави в началото на .sma файла:
#include <reapi_rechecker>
1. Изтегли
Свали файла от бутона по-горе
2. Копирай
Постави в scripting/include/
3. Включи
Добави #include директивата
4. Компилирай
Използвай amxxpc или scripting/compile.exe
PrivateServ.NET