ACC банит чистый GSClient (found wrong cmd)

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
42
Реакции
32
Ошибка
Лог ACC:
L 01/09/2021 - 15:41:57: [ACC] found wrong cmd: "m_flBoxESP". Player: "GSClient"<STEAM_1:0:1285764768>

Консоль GSClient:
[Blocked] "m_flBoxESP" - пару таких строчек в консоли после чего инфо о бане
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5271 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jun 24 2020 13:53:30
Built from: https://github.com/alliedmodders/amxmodx/commit/5eea3e5
Build ID: 5271:5eea3e5
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.704-dev
Build date: 13:14:54 Dec 3 2020 (2427)
Build from: https://github.com/dreamstalker/rehlds/commit/83c0b6e
ReGamedll
ReGameDLL version: 5.20.0.492-dev
Build date: 15:26:35 Jan 4 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/aae507c
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.75 ini Start Never
[ 2] Revoice RUN - revoice_mm_i386.so v0.1.0.34 ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5271 ini Start ANY
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 6] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 9] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[10] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[11] ReAPI RUN - reapi_amxx_i386.so v5.19.0.210-dev pl3 ANY Never
[12] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl3 ANY Never
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[14] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[15] CSX RUN - csx_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
[17] Engine RUN - engine_amxx_i386.so v1.9.0.5271 pl3 ANY ANY
17 plugins, 17 running
Список плагинов
name version author file status
[ 1] FreshBans 1.4.3b kanagava fresh_bans.amxx running
[ 2] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 3] Advanced Client Checke 0.3.6 Mistrick cmdchecker.amxx running
[ 4] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 5] Admin Base 1.9.0.5271 AMXX Dev Team admin.amxx running
[ 6] Admin Commands 1.9.0.5271 AMXX Dev Team admincmd.amxx running
[ 7] Slots Reservation 1.9.0.5271 AMXX Dev Team adminslots.amxx running
[ 8] Menus Front-End 1.5 neugomon menufrontend.am running
[ 9] Commands Menu 1.9.0.5271 AMXX Dev Team cmdmenu.amxx running
[ 10] Players Menu 1.9.0.5271 AMXX Dev Team plmenu.amxx running
[ 11] Maps Menu 1.4.1 neugomon mapsmenu.amxx running
[ 12] Anti Flood 1.9.0.5271 AMXX Dev Team antiflood.amxx running
[ 13] Admin Votes 1.9.0.5271 AMXX Dev Team adminvote.amxx running
[ 14] Map Manager 2.5.61 Mistrick mapmanager.amxx running
[ 15] Stats Configuration 1.9.0.5271 AMXX Dev Team statscfg.amxx running
[ 16] Restrict Weapons 1.9.0.5271 AMXX Dev Team restmenu.amxx running
[ 17] AES: StatsX 0.5+1 serfreeman1337 aes_statsx.amxx running
[ 18] Say me and Say hp 1.4 neygomon sayme_reapi.amx running
[ 19] Yet Another Voteban 1.8 AndrewZ/voed yet_another_vot running
[ 20] Demo Recorder 2.4.1 F@nt0M demo_recorder.a running
[ 21] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 22] MOTD Commands 1.3 OciXCrom motdcommands.am running
[ 23] [ReAPI] AWPoff 1.4.3 PAffAEJIkA :3 awp_off.amxx остановлен
[ 24] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 25] Lite Admin ESP 1.0 neygomon light_admin_esp running
[ 26] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 27] [reAPI] Flash Control 1.1 neugomon no_team_flash.a running
[ 28] Parachute Lite [ReAPI] 11.0 Leo_[BH] parachute_lite. running
[ 29] Advanced Bullet Damage 1.0 Sn!ff3r damager.amxx running
[ 30] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 31] Knife Duel 1.3 neygomon knife_duel.amxx running
[ 32] Spect Bot 1.2 SKAJIbnEJIb & Bo SpectBot.amxx running
[ 33] [ReAPI] Kills Counter 0.4 serfreeman1337 kills_counter.a running
[ 34] Back Weapons 1.87 hoboman313/cheap backweapons.amx running
[ 35] Game Namer 1.1 NeuroToxin gamenamechanger running
[ 36] Advanced Kill Assists 1.3c Xelson advanced_kill_a running
[ 37] Custom Smoke 1.09 bionext custom_smoke.am running
[ 38] Advert Messages 1.22 neygomon adverts.amxx running
[ 39] Chat Manager 1.1.2-16 Mistrick chatmanager.amx running
39 plugins, 38 running
Автор плагина
Mistrick
Версия плагина
0.3.6
Исходный код
#include <amxmodx>

#define PLUGIN "Advanced Client Checker"
#define VERSION "0.3.6"
#define AUTHOR "Mistrick"

#pragma semicolon 1

///******** Settings ********///

// #define KICK_BAD_CLIENT // кик за блокировку подтверждения
// #define KICK_FOR_BLOCK_CVAR_ANSWER // кик за блок ответа на запрос квара
// #define COMMAND_LOGGER // функция логирования написанных в консоль команд игроком

#define INPUT_DELAY 3.0 // задержка проверки после коннекта
#define RECHECK_DELAY 300.0 // через сколько начать повторную проверку
#define MAX_CMDS_FOR_LOOP 1000 // сколько команд проверять за цикл
#define LOOP_DELAY 5.0 // задержка между циклами
#define FIRST_ANSWER_MAX_TIME 5.0 // время на ответ от команды подтверждения
#define FIRST_CMD_RECHECKS 5
#define MAX_CMD_WARNINGS 5

#define CVAR_ANSWER_TIME 5.0 // время на ответ от квара
#define CVAR_ANSWER_RECHECKS 5 // число перепроверок на запрос квара

///**************************///

enum ( +=100 ) {
TASK_FIRST_CMD = 100,
TASK_CMD_CHECK,
TASK_CVAR_ANSWER,
TASK_CVAR_CHECK
};

enum CvarFlags ( <<= 1 ) {
CVAR_EXIST = 1,
CVAR_NOT_EXIST,
CVAR_EQUAL,
CVAR_NOT_EQUAL,
CVAR_ABOVE,
CVAR_BELOW
}

enum PunishType {
PUNISH_BAD_CLIENT,
PUNISH_BLOCK_CVAR_ANSWER,
PUNISH_WRONG_CMD,
PUNISH_WRONG_CVAR,
PUNISH_BAD_CMD
};

enum _:CommandStruct {
_CmdPunishLevel,
_Cmd[64]
};

enum _:CvarStruct {
_CvarPunishLevel,
CvarFlags:_CvarFlags,
_Cvar[64],
_CvarValue[32],
Float:_CvarValueAbove,
Float:_CvarValueBelow
};

enum BadCmdFlags ( <<= 1 ) {
BADCMD_ANY = 1,
BADCMD_PREFIX,
BADCMD_SUFFIX
};

enum _:BadCmdStruct {
_BadCmdPunishLevel,
BadCmdFlags:_BadCmdFlags,
_BadCmd[64]
};

enum _:PunishStruct {
_PunishLevel,
_PunishCmd[128]
};

#define CMD_LEN 8
#define INVALID_INDEX -1

new const FILE_CMD_CFG[] = "cmds.cfg";
new const FILE_CVAR_CFG[] = "cvars.cfg";
new const FILE_BAD_CMD_CFG[] = "bad_cmds.cfg";
new const FILE_PUNISH_CFG[] = "punish.cfg";
new const FILE_SLOWHACK_ANSWER_CFG[] = "slowhackanswer.cfg";

new player_ip[33][16];
new player_authid[33][32];
new bool:is_player_steam[33];

new bool:client_answered[33];
new client_answer_check[33];
new client_cmd_warnings[33];
new current_cmd_state[33];
new current_cmd[33][64];
new bool:first_check[33];
new rnd_str[33][CMD_LEN];

new Array:g_aCmdList;
new g_iCmdListSize;

new Array:g_aBadCmdList;
new g_iBadCmdListSize;
new current_bad_cmd[33];

new current_cvar_state[33];
new client_cvar_warnings[33];

new Array:g_aCvarList;
new g_iCvarListSize;

new Array:g_aPunishList;

new Trie:g_tSlowhackAnswer;
new g_iSlowhackAnswerSize;

#if defined COMMAND_LOGGER
new const FILE_CMD_LOG[] = "cmdlog.cfg";
new Trie:g_tCmdLog;
new g_szCmdLogPath[260];
#endif // COMMAND_LOGGER

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_concmd("acc_add_cmd", "command_add_cmd", ADMIN_RCON);
register_concmd("acc_add_cvar", "command_add_cvar", ADMIN_RCON);
register_concmd("acc_add_bad_cmd", "command_add_bad_cmd", ADMIN_RCON);
register_concmd("acc_add_punish", "command_add_punish", ADMIN_RCON);
register_concmd("acc_add_slowhack_answer", "command_add_slowhack_answer", ADMIN_RCON);

g_aCmdList = ArrayCreate(CommandStruct, 1);
g_aCvarList = ArrayCreate(CvarStruct, 1);
g_aBadCmdList = ArrayCreate(BadCmdStruct, 1);
g_aPunishList = ArrayCreate(PunishStruct, 1);
g_tSlowhackAnswer = TrieCreate();

#if defined COMMAND_LOGGER
register_concmd("acc_add_cmd_log", "command_add_cmd_log", ADMIN_RCON);
g_tCmdLog = TrieCreate();
#endif // COMMAND_LOGGER
}
public plugin_cfg()
{
new file_dir[256]; get_localinfo("amxx_configsdir", file_dir, charsmax(file_dir));

server_cmd("exec %s/cmdchecker/%s", file_dir, FILE_CMD_CFG);
server_cmd("exec %s/cmdchecker/%s", file_dir, FILE_CVAR_CFG);
server_cmd("exec %s/cmdchecker/%s", file_dir, FILE_BAD_CMD_CFG);
server_cmd("exec %s/cmdchecker/%s", file_dir, FILE_PUNISH_CFG);
server_cmd("exec %s/cmdchecker/%s", file_dir, FILE_SLOWHACK_ANSWER_CFG);

#if defined COMMAND_LOGGER
formatex(g_szCmdLogPath, charsmax(g_szCmdLogPath), "%s/cmdchecker/%s", file_dir, FILE_CMD_LOG);
server_cmd("exec %s", g_szCmdLogPath);
#endif // COMMAND_LOGGER
}
public plugin_end()
{
ArrayDestroy(g_aCmdList);
ArrayDestroy(g_aCvarList);
ArrayDestroy(g_aPunishList);

#if defined COMMAND_LOGGER
TrieDestroy(g_tSlowhackAnswer);
#endif // COMMAND_LOGGER
}
public command_add_cmd(id, level, cid)
{
if(~get_user_flags(id) & level) {
return PLUGIN_HANDLED;
}

if(read_argc() != 3) {
return PLUGIN_HANDLED;
}

new cmd_info[CommandStruct], args[16];
read_argv(1, args, charsmax(args));
cmd_info[_CmdPunishLevel] = str_to_num(args);
read_argv(2, cmd_info[_Cmd], charsmax(cmd_info[_Cmd]));
trim(cmd_info[_Cmd]);

ArrayPushArray(g_aCmdList, cmd_info);
g_iCmdListSize++;

return PLUGIN_HANDLED;
}
public command_add_cvar(id, level, cid)
{
if(~get_user_flags(id) & level) {
return PLUGIN_HANDLED;
}

new args_num = read_argc() - 1;

if(args_num < 3) {
return PLUGIN_HANDLED;
}

new cvar_info[CvarStruct], args[16];
read_argv(1, args, charsmax(args));
cvar_info[_CvarPunishLevel] = str_to_num(args);


// find this cvar in array
// if exists update cvar flags

read_argv(2, cvar_info[_Cvar], charsmax(cvar_info[_Cvar]));
trim(cvar_info[_Cvar]);
strtolower(cvar_info[_Cvar]);

read_argv(3, args, charsmax(args));

if(args_num == 3) {
if(equal(args, "exist")) {
cvar_info[_CvarFlags] |= CVAR_EXIST;
} else if(equal(args, "!exist")) {
cvar_info[_CvarFlags] |= CVAR_NOT_EXIST;
}
} else if(args_num == 4) {
if(equal(args, "equal") || equal(args, "==") || equal(args, ">=") || equal(args, "<=")) {
cvar_info[_CvarFlags] |= CVAR_EQUAL;
read_argv(4, cvar_info[_CvarValue], charsmax(cvar_info[_CvarValue]));
} else if(equal(args, "!equal") || equal(args, "!=")) {
cvar_info[_CvarFlags] |= CVAR_NOT_EQUAL;
read_argv(4, cvar_info[_CvarValue], charsmax(cvar_info[_CvarValue]));
}

if(equal(args, ">") || equal(args, ">=")) {
cvar_info[_CvarFlags] |= CVAR_ABOVE;
read_argv(4, args, charsmax(args));
cvar_info[_CvarValueAbove] = _:str_to_float(args);
} else if(equal(args, "<") || equal(args, "<=")) {
cvar_info[_CvarFlags] |= CVAR_BELOW;
read_argv(4, args, charsmax(args));
cvar_info[_CvarValueBelow] = _:str_to_float(args);
}
}

if(cvar_info[_CvarFlags]) {
ArrayPushArray(g_aCvarList, cvar_info);
g_iCvarListSize++;
}

return PLUGIN_HANDLED;
}

public command_add_bad_cmd(id, level, cid)
{
if(~get_user_flags(id) & level) {
return PLUGIN_HANDLED;
}

if(read_argc() < 3) {
return PLUGIN_HANDLED;
}

new bad_cmd_info[BadCmdStruct], args[16];
read_argv(1, args, charsmax(args));
bad_cmd_info[_BadCmdPunishLevel] = str_to_num(args);

new command[64], len;
len = read_argv(2, command, charsmax(command));

if(command[0] == '*' && command[len - 1] == '*') {
bad_cmd_info[_BadCmdFlags] = _:BADCMD_ANY;
command[len - 1] = 0;
copy(bad_cmd_info[_BadCmd], charsmax(bad_cmd_info[_BadCmd]), command[1]);
} else if(command[0] != '*' && command[len - 1] != '*') {
bad_cmd_info[_BadCmdFlags] = _:BADCMD_ANY;
copy(bad_cmd_info[_BadCmd], charsmax(bad_cmd_info[_BadCmd]), command);
} else if(command[0] == '*') {
bad_cmd_info[_BadCmdFlags] = _:BADCMD_SUFFIX;
copy(bad_cmd_info[_BadCmd], charsmax(bad_cmd_info[_BadCmd]), command[1]);
} else if(command[len - 1] == '*') {
bad_cmd_info[_BadCmdFlags] = _:BADCMD_PREFIX;
command[len - 1] = 0;
copy(bad_cmd_info[_BadCmd], charsmax(bad_cmd_info[_BadCmd]), command);
}

ArrayPushArray(g_aBadCmdList, bad_cmd_info);
g_iBadCmdListSize++;

return PLUGIN_HANDLED;
}

public command_add_punish(id, level, cid)
{
if(~get_user_flags(id) & level) {
return PLUGIN_HANDLED;
}

if(read_argc() != 3) {
return PLUGIN_HANDLED;
}

new punish_info[PunishStruct], args[16];
read_argv(1, args, charsmax(args));
punish_info[_PunishLevel] = str_to_num(args);
read_argv(2, punish_info[_PunishCmd], charsmax(punish_info[_PunishCmd]));

ArrayPushArray(g_aPunishList, punish_info);

return PLUGIN_HANDLED;
}
public command_add_slowhack_answer(id, level, cid)
{
if(~get_user_flags(id) & level) {
return PLUGIN_HANDLED;
}

new args[64]; read_args(args, charsmax(args));
remove_quotes(args); trim(args);
TrieSetCell(g_tSlowhackAnswer, args, 1);
g_iSlowhackAnswerSize++;

return PLUGIN_HANDLED;
}

#if defined COMMAND_LOGGER
public command_add_cmd_log(id, level, cid)
{
if(~get_user_flags(id) & level) {
return PLUGIN_HANDLED;
}

new args[64]; read_args(args, charsmax(args));
remove_quotes(args); trim(args);
TrieSetCell(g_tCmdLog, args, 1);

return PLUGIN_HANDLED;
}
#endif // COMMAND_LOGGER

public client_putinserver(id)
{
if(is_user_bot(id) || is_user_hltv(id)) return;

is_player_steam[id] = is_user_steam(id);

if(g_iCmdListSize) {
client_answer_check[id] = 0;
set_task(INPUT_DELAY + random_float(0.5, 1.5), "init_cmd_check", id + TASK_CMD_CHECK);
}

if(g_iCvarListSize) {
set_task(INPUT_DELAY + random_float(1.5, 3.5), "init_cvar_check", id + TASK_CVAR_CHECK);
}

get_user_authid(id, player_authid[id], charsmax(player_authid[]));
get_user_ip(id, player_ip[id], charsmax(player_ip[]), 1);
}
public client_disconnect(id)
{
remove_task(id + TASK_CMD_CHECK);
remove_task(id + TASK_FIRST_CMD);
remove_task(id + TASK_CVAR_ANSWER);
remove_task(id + TASK_CVAR_CHECK);
}
public init_cmd_check(id)
{
id -= TASK_CMD_CHECK;

first_check[id] = true;
current_cmd_state[id] = -1;
client_answered[id] = true;
client_cmd_warnings[id] = 0;

generate_string(rnd_str[id], charsmax(rnd_str[]));
client_cmd(id, rnd_str[id]);
set_task(FIRST_ANSWER_MAX_TIME, "check_first_cmd", id + TASK_FIRST_CMD);
}
public check_first_cmd(id)
{
// client without answer
id -= TASK_FIRST_CMD;

if(++client_answer_check[id] >= FIRST_CMD_RECHECKS) {
punishment(id, PUNISH_BAD_CLIENT);
} else {
init_cmd_check(id + TASK_CMD_CHECK);
}
}
public client_command(id)
{
new cmd[64]; read_argv(0, cmd, charsmax(cmd));

if(current_cmd_state[id] >= 0 && equal(cmd, current_cmd[id])) {
client_answered[id] = true;
return PLUGIN_HANDLED;
}

if(g_iSlowhackAnswerSize && !client_answered[id] && TrieKeyExists(g_tSlowhackAnswer, cmd)) {
// slowhack answer
client_answered[id] = true;
return PLUGIN_HANDLED;
}

if(equal(rnd_str[id], cmd)) {
if(first_check[id]) {
first_check[id] = false;
remove_task(id + TASK_FIRST_CMD);
}
// send next cmd
generate_string(rnd_str[id], charsmax(rnd_str[]));
if(client_answered[id]) {
client_answered[id] = false;

if(++current_cmd_state[id] >= g_iCmdListSize) {
set_task(RECHECK_DELAY + random_float(0.0, 30.0), "init_cmd_check", id + TASK_CMD_CHECK);
return PLUGIN_HANDLED;
}
// add delay if too match cmds
// 50-100 cmds for one cycle
if(current_cmd_state[id] && !(current_cmd_state[id] % MAX_CMDS_FOR_LOOP)) {
set_task(LOOP_DELAY, "send_next_cmd", id);
return PLUGIN_HANDLED;
}
} else {
if(++client_cmd_warnings[id] >= MAX_CMD_WARNINGS) {
punishment(id, PUNISH_WRONG_CMD);
return PLUGIN_HANDLED;
}
}
send_next_cmd(id);
return PLUGIN_HANDLED;
}

if(g_iBadCmdListSize) {
new bad_cmd_info[BadCmdStruct];
new result;

new cmd_len = strlen(cmd), bad_cmd_len;

for(new i; i < g_iBadCmdListSize; i++) {
ArrayGetArray(g_aBadCmdList, i, bad_cmd_info);

result = containi(cmd, bad_cmd_info[_BadCmd]);

if(result == -1) {
continue;
}

current_bad_cmd[id] = i;
bad_cmd_len = strlen(bad_cmd_info[_BadCmd]);

// log_amx("[ACC] found bad cmd: %s, pattern: %s. STEAM: %s", cmd, bad_cmd_info[_BadCmd], player_authid[id]);
// punishment(id, PUNISH_BAD_CMD);

if(!result && cmd_len > bad_cmd_len && bad_cmd_info[_BadCmdFlags] & BADCMD_PREFIX) {
log_player(id, "found prefix bad cmd: ^"%s^", pattern: ^"%s^"", cmd, bad_cmd_info[_BadCmd]);
punishment(id, PUNISH_BAD_CMD);
return PLUGIN_HANDLED;
} else if(cmd_len - result == bad_cmd_len && cmd_len > bad_cmd_len && bad_cmd_info[_BadCmdFlags] & BADCMD_SUFFIX) {
log_player(id, "found suffix bad cmd: ^"%s^", pattern: ^"%s^"", cmd, bad_cmd_info[_BadCmd]);
punishment(id, PUNISH_BAD_CMD);
return PLUGIN_HANDLED;
} else if(bad_cmd_info[_BadCmdFlags] & BADCMD_ANY) {
log_player(id, "found bad cmd: ^"%s^", pattern: ^"%s^"", cmd, bad_cmd_info[_BadCmd]);
punishment(id, PUNISH_BAD_CMD);
return PLUGIN_HANDLED;
}
}
}

#if defined COMMAND_LOGGER
if(!TrieKeyExists(g_tCmdLog, cmd)) {
add_new_cmd(id, cmd);
}
#endif // COMMAND_LOGGER

return PLUGIN_CONTINUE;
}
public send_next_cmd(id)
{
new cmd_info[CommandStruct]; ArrayGetArray(g_aCmdList, current_cmd_state[id], cmd_info);
copy(current_cmd[id], charsmax(current_cmd[]), cmd_info[_Cmd]);

if(is_player_steam[id])
send_director_cmd(id, current_cmd[id]);
else
client_cmd(id, current_cmd[id]);

client_cmd(id, rnd_str[id]);
}


public init_cvar_check(id)
{
id -= TASK_CVAR_CHECK;

current_cvar_state[id] = 0;
client_cvar_warnings[id] = 0;

send_next_cvar(id);
}

public send_next_cvar(id)
{
new cvar_info[CvarStruct]; ArrayGetArray(g_aCvarList, current_cvar_state[id], cvar_info);
query_client_cvar(id, cvar_info[_Cvar], "cvar_callback", 1, _:cvar_info[_CvarFlags]);
set_task(CVAR_ANSWER_TIME, "cvar_answer", id + TASK_CVAR_ANSWER);
}

public cvar_answer(id)
{
id -= TASK_CVAR_ANSWER;

if(++client_cvar_warnings[id] >= CVAR_ANSWER_RECHECKS) {
punishment(id, PUNISH_BLOCK_CVAR_ANSWER);
} else {
send_next_cvar(id);
}
}

public cvar_callback(id, cvar[], value[], params[])
{
remove_task(id + TASK_CVAR_ANSWER);

new CvarFlags:flags = CvarFlags:params[0];

if(flags & (CVAR_EXIST|CVAR_NOT_EXIST)) {
new eq = equal(value, "Bad CVAR request");
if(!eq && flags & CVAR_EXIST) {
// punish for exist cvar
log_player(id, "found bad cvar: ^"%s^"", cvar);
punishment(id, PUNISH_WRONG_CVAR);
return PLUGIN_HANDLED;
}
if(eq && flags & CVAR_NOT_EXIST) {
// punish for not exist cvar
log_player(id, "where is your cvar: ^"%s^"", cvar);
punishment(id, PUNISH_WRONG_CVAR);
return PLUGIN_HANDLED;
}
}

if(current_cvar_state[id] >= ArraySize(g_aCvarList)) {
log_amx("[ACC] Undefined behavior. Cvar: ^"%s^", value: ^"%s^", flags: %d", cvar, value, flags);
return PLUGIN_HANDLED;
}

new cvar_info[CvarStruct]; ArrayGetArray(g_aCvarList, current_cvar_state[id], cvar_info);

if(flags & (CVAR_EQUAL|CVAR_NOT_EQUAL)) {
if((equali(value, cvar_info[_CvarValue]) || str_to_float(value) == str_to_float(cvar_info[_CvarValue])) && flags & CVAR_EQUAL) {
log_player(id, "found equal cvar value: ^"%s^" %s == %s", cvar, value, cvar_info[_CvarValue]);
punishment(id, PUNISH_WRONG_CVAR);
return PLUGIN_HANDLED;
} else if(flags & CVAR_NOT_EQUAL) {
log_player(id, "found not equal cvar value: ^"%s^" %s != %s", cvar, value, cvar_info[_CvarValue]);
punishment(id, PUNISH_WRONG_CVAR);
return PLUGIN_HANDLED;
}
}

if(flags & CVAR_ABOVE && str_to_float(value) > cvar_info[_CvarValueAbove]) {
log_player(id, "found cvar value: ^"%s^" %s > %.1f", cvar, value, cvar_info[_CvarValueAbove]);
punishment(id, PUNISH_WRONG_CVAR);
return PLUGIN_HANDLED;
}

if(flags & CVAR_BELOW && str_to_float(value) < cvar_info[_CvarValueBelow]) {
log_player(id, "found cvar value: ^"%s^" %s < %.1f", cvar, value, cvar_info[_CvarValueBelow]);
punishment(id, PUNISH_WRONG_CVAR);
return PLUGIN_HANDLED;
}

if(++current_cvar_state[id] >= g_iCvarListSize) {
set_task(RECHECK_DELAY, "init_cvar_check", id + TASK_CVAR_CHECK);
return PLUGIN_HANDLED;
}
send_next_cvar(id);

return PLUGIN_HANDLED;
}

#if defined COMMAND_LOGGER
add_new_cmd(id, cmd[])
{
TrieSetCell(g_tCmdLog, cmd, 1);
new name[32], text[256];
get_user_name(id, name, charsmax(name));
formatex(text, charsmax(text), "// cmd: ^"%s^", player: %s, steamid: %s, ip: %s^nacc_add_cmd_log ^"%s^"", cmd, name, player_authid[id], player_ip[id], cmd);
write_file(g_szCmdLogPath, text);
}
#endif // COMMAND_LOGGER

punishment(id, PunishType:type)
{
// ban, kick, etc...
new punish_index, reason[32];

switch(type) {
case PUNISH_BAD_CLIENT: {
// bad client, protector
log_player(id, "found bad client or protector");

#if defined KICK_BAD_CLIENT
server_cmd("kick #%d Bad Client", get_user_userid(id));
#endif

return;
}
case PUNISH_BLOCK_CVAR_ANSWER: {
new cvar_info[CvarStruct]; ArrayGetArray(g_aCvarList, current_cvar_state[id], cvar_info);
log_player(id, "cvar without answer: %s", cvar_info[_Cvar]);

#if defined KICK_FOR_BLOCK_CVAR_ANSWER
server_cmd("kick #%d Block Cvar", get_user_userid(id));
#endif

return;
}
case PUNISH_WRONG_CMD: {
log_player(id, "found wrong cmd: ^"%s^"", current_cmd[id]);

new cmd_info[CommandStruct]; ArrayGetArray(g_aCmdList, current_cmd_state[id], cmd_info);
punish_index = get_punish_index(cmd_info[_CmdPunishLevel]);

if(punish_index == INVALID_INDEX) {
log_amx("[ACC] Can't find ^"%d^" punish level for ^"%s^".", cmd_info[_CmdPunishLevel], cmd_info[_Cmd]);
return;
}

copy(reason, charsmax(reason), cmd_info[_Cmd]);
}
case PUNISH_WRONG_CVAR: {
new cvar_info[CvarStruct]; ArrayGetArray(g_aCvarList, current_cvar_state[id], cvar_info);
punish_index = get_punish_index(cvar_info[_CvarPunishLevel]);

if(punish_index == INVALID_INDEX) {
log_amx("[ACC] Can't find ^"%d^" punish level for ^"%s^".", cvar_info[_CvarPunishLevel], cvar_info[_Cvar]);
return;
}

copy(reason, charsmax(reason), cvar_info[_Cvar]);
}
case PUNISH_BAD_CMD: {
new bad_cmd_info[BadCmdStruct]; ArrayGetArray(g_aBadCmdList, current_bad_cmd[id], bad_cmd_info);
punish_index = get_punish_index(bad_cmd_info[_BadCmdPunishLevel]);

if(punish_index == INVALID_INDEX) {
log_amx("[ACC] Can't find ^"%d^" punish level for ^"%s^".", bad_cmd_info[_BadCmdPunishLevel], bad_cmd_info[_BadCmd]);
return;
}

copy(reason, charsmax(reason), bad_cmd_info[_BadCmd]);
}
}

new punish_info[PunishStruct]; ArrayGetArray(g_aPunishList, punish_index, punish_info);
new userid[16]; num_to_str(get_user_userid(id), userid, charsmax(userid));

replace(punish_info[_PunishCmd], charsmax(punish_info[_PunishCmd]), "%userid%", userid);
replace(punish_info[_PunishCmd], charsmax(punish_info[_PunishCmd]), "%reason%", reason);

server_cmd("%s", punish_info[_PunishCmd]);
}

log_player(id, message[], any:...)
{
new buffer[256]; vformat(buffer, charsmax(buffer), message, 3);
new name[32]; get_user_name(id, name, charsmax(name));
log_amx("[ACC] %s. Player: ^"%s^"<%s><%s>", buffer, name, player_authid[id], player_ip[id]);
}

generate_string(str[], len)
{
for(new i; i < len; i++) {
switch(random(2)) {
case 0: str[i] = random_num('A', 'Z');
case 1: str[i] = random_num('a', 'z');
}
}
str[len] = 0;
}
get_punish_index(level)
{
new size = ArraySize(g_aPunishList);
for(new i, punish_info[PunishStruct]; i < size; i++) {
ArrayGetArray(g_aPunishList, i, punish_info);
if(level == punish_info[_PunishLevel]) {
return i;
}
}
return INVALID_INDEX;
}

stock send_director_cmd(id , text[])
{
message_begin( MSG_ONE, SVC_DIRECTOR, _, id );
write_byte( strlen(text) + 2 );
write_byte( 10 );
write_string( text );
message_end();
}

stock bool:is_user_steam(id)
{
static dp_pointer;
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider"))) {
server_cmd("dp_clientinfo %d", id); server_exec();
return (get_pcvar_num(dp_pointer) == 2) ? true : false;
}
return false;
}
Банит чистую сборку GSClient. Также пробовал на полностью чистый сервер (локально - скачал через Depot, накинул метамод и амхмод) установить этот, единственный плагин - тоже банило.

Скорее всего недочёт/ошибка либо в коде плагина (не учитывает то, что протектор блокирует посылаемые алиасы), либо в моём cmds.cfg:

// Syntax: acc_add_cmd <level> <cmd>
// acc_add_cmd "1" "super_hack_cmd"

acc_add_cmd "1" "crash1"
acc_add_cmd "3" "misc_panickey"
acc_add_cmd "3" "esp_lambert"
acc_add_cmd "3" "glowshells"
acc_add_cmd "4" "+fire"
acc_add_cmd "5" "wpn_glock"
acc_add_cmd "5" "wpn_usp"
acc_add_cmd "5" "wpn_deagle"
acc_add_cmd "5" "wpn_ak47"
acc_add_cmd "5" "wpn_m4a1"
acc_add_cmd "5" "wpn_awp"
acc_add_cmd "6" "aswitch0"
acc_add_cmd "6" "+fusion"
acc_add_cmd "6" "+gear2"
acc_add_cmd "7" "headhitbox"
acc_add_cmd "7" "Box"
acc_add_cmd "7" "BoxEsp"
acc_add_cmd "7" "nameesp"
acc_add_cmd "7" "CrosshairESP"
acc_add_cmd "7" "weaponesp"
acc_add_cmd "7" "distanceesp"
acc_add_cmd "7" "far"
acc_add_cmd "7" "faresp"
acc_add_cmd "7" "DrawAimspot"
acc_add_cmd "7" "Aimspot"
acc_add_cmd "7" "esp_box"
acc_add_cmd "7" "espadd"
acc_add_cmd "7" "radar_range"
acc_add_cmd "7" "m_flBoxESP"
acc_add_cmd "7" "Mindistance"
acc_add_cmd "7" "draw"
acc_add_cmd "7" "HitESP"
acc_add_cmd "7" "HiddenESP"
acc_add_cmd "7" "GlowLambert"
acc_add_cmd "7" "TeamESP"
acc_add_cmd "7" "weaponglow"
acc_add_cmd "8" "coltsetup"
acc_add_cmd "9" "Hs"
acc_add_cmd "9" "imm"
acc_add_cmd "9" "Sniper"
acc_add_cmd "9" "Aimteam"
acc_add_cmd "9" "anowon1"
acc_add_cmd "9" "+acc"
acc_add_cmd "9" "dodshoot+"
acc_add_cmd "9" "+shot"
acc_add_cmd "9" "+ssa8353"
acc_add_cmd "9" "+@koraim"
acc_add_cmd "9" "+ddd"
acc_add_cmd "9" "+hhh"
acc_add_cmd "9" "+hed"
acc_add_cmd "9" "NewAimHead"
acc_add_cmd "9" "aura1"
acc_add_cmd "9" "anowon1"
acc_add_cmd "9" "silahyok"
acc_add_cmd "9" "MoRpHeUsha"
acc_add_cmd "9" "defav"
acc_add_cmd "9" "+doaim"
acc_add_cmd "9" "+$nonup"
acc_add_cmd "9" "Sc0rpi0nShead"
acc_add_cmd "9" "aimthru"
acc_add_cmd "9" "aim_bot"
acc_add_cmd "9" "key_aim"
acc_add_cmd "9" "htfpure"
acc_add_cmd "9" "Headsoulassassin"
acc_add_cmd "9" "zeroheadSD"
acc_add_cmd "9" "shot111"
acc_add_cmd "9" "hspitch1"
acc_add_cmd "9" "humaim"
acc_add_cmd "9" "bnup"
acc_add_cmd "9" "dshot"
acc_add_cmd "9" "1337head1"
acc_add_cmd "9" "vwall"
acc_add_cmd "9" "vesp"
acc_add_cmd "9" "bb_zglow"
acc_add_cmd "9" "resource_esp"
acc_add_cmd "9" "adjust_forward"
acc_add_cmd "9" "avadd"
acc_add_cmd "9" "vec_deagle"
acc_add_cmd "9" "pred"
acc_add_cmd "9" "ns_health"
acc_add_cmd "9" "vg_aimbot"
acc_add_cmd "9" "aim_Silent"
acc_add_cmd "9" "+nakeshooter"
acc_add_cmd "9" "+snp"
acc_add_cmd "9" "+akra"
acc_add_cmd "9" "+thru"
acc_add_cmd "9" "+csgaim"
acc_add_cmd "9" "+doshoot"
acc_add_cmd "9" "+ab_a1m"
acc_add_cmd "9" "+nxhead2"
acc_add_cmd "9" "+koraim"
acc_add_cmd "9" "deagle][AIM"
acc_add_cmd "9" "1SHOT"
acc_add_cmd "9" "a1"
acc_add_cmd "9" "SIR1"
acc_add_cmd "9" "zbadassdone"
acc_add_cmd "9" "att"
acc_add_cmd "9" "+.333.shoot"
acc_add_cmd "9" "+.333.aim"
acc_add_cmd "10" "+a"
acc_add_cmd "10" "+af_fire"
acc_add_cmd "10" "antirclon"
acc_add_cmd "10" "recoilSw_usp"
acc_add_cmd "10" "R.R3C0I|_AK.16.14"
acc_add_cmd "10" "+lkdn"
acc_add_cmd "10" "recoil"
acc_add_cmd "10" "r"
acc_add_cmd "10" "r12"
acc_add_cmd "10" "recoil_usp"
acc_add_cmd "10" "r35"
acc_add_cmd "10" "r09"
acc_add_cmd "10" "r2"
acc_add_cmd "10" "r22"
acc_add_cmd "10" "asnip"
acc_add_cmd "10" "pisr"
acc_add_cmd "10" "ps2"
acc_add_cmd "10" "para"
acc_add_cmd "10" "antircl"
acc_add_cmd "10" "+head1"
acc_add_cmd "10" "+fastattack"
acc_add_cmd "10" "+PRO100"
acc_add_cmd "10" "misc_norecoil"
acc_add_cmd "10" "vx_recoilamount"
acc_add_cmd "10" "+ss9"
acc_add_cmd "10" "+m4_recoil"
acc_add_cmd "10" "+norec"
acc_add_cmd "10" "+hson"
acc_add_cmd "10" "+recoilshoot"
acc_add_cmd "10" "+reak"
acc_add_cmd "10" "+skill"
acc_add_cmd "10" "+necro2"
acc_add_cmd "10" "+FMS"
acc_add_cmd "10" "W.crs.1"
acc_add_cmd "11" "awpon"
acc_add_cmd "11" "sniperon"
acc_add_cmd "11" "+awp"
acc_add_cmd "11" "sniper"
acc_add_cmd "11" "+awpzoom"
acc_add_cmd "11" "+dozoom"
acc_add_cmd "11" "+awpshot"
acc_add_cmd "11" "+[G]_AWPskr1pT"
acc_add_cmd "11" "sphyawm"
acc_add_cmd "12" "burst"
acc_add_cmd "12" "ip_shot"
acc_add_cmd "13" "+dd"
acc_add_cmd "14" "+bhop"
acc_add_cmd "14" "bhop+"
acc_add_cmd "14" "+bhp"
acc_add_cmd "14" "+_bhop"
acc_add_cmd "14" "+buhop"
acc_add_cmd "14" "+jj"
acc_add_cmd "14" "+bb"
acc_add_cmd "14" "+hop"
acc_add_cmd "15" "kzh_bhop"
acc_add_cmd "15" "kzh_speed"
acc_add_cmd "15" "+sw23.str"
acc_add_cmd "16" "wr"
acc_add_cmd "17" "+silentdefuse"
acc_add_cmd "18" "+walk"
acc_add_cmd "18" "+jump_hook"
acc_add_cmd "19" "akvec"
acc_add_cmd "19" "togglepanic"
acc_add_cmd "19" "+radar"
acc_add_cmd "19" "XYMenu"
acc_add_cmd "19" "c"
acc_add_cmd "19" "ak"
acc_add_cmd "19" "weapon_r"
acc_add_cmd "19" "drawvmode"
acc_add_cmd "19" "kuzesp"
acc_add_cmd "19" "osd1_alias0"
acc_add_cmd "19" "h4x0r_on"
acc_add_cmd "19" "twcon"
acc_add_cmd "19" "newzitneg"
acc_add_cmd "19" "spamz0r"
acc_add_cmd "19" "PlayerESP"
acc_add_cmd "19" "sequence"
acc_add_cmd "19" "smooth"
acc_add_cmd "19" "taction"
acc_add_cmd "19" "wa_h"
acc_add_cmd "19" "zspy"
acc_add_cmd "19" "zh4aim"
acc_add_cmd "19" "nigger"
acc_add_cmd "19" "addvec"
acc_add_cmd "19" "xqz"
acc_add_cmd "19" "boxsize"
acc_add_cmd "19" "PWall"
acc_add_cmd "19" "hack"
acc_add_cmd "19" "xhairon"
acc_add_cmd "19" "zzzavSheadDoc"
acc_add_cmd "19" "prone"
acc_add_cmd "19" "+ss"
acc_add_cmd "19" "+hahaha"
acc_add_cmd "19" "+kk"
acc_add_cmd "19" "+cs"
acc_add_cmd "19" "+sk"
acc_add_cmd "19" "+cr"
acc_add_cmd "19" "glhack"
acc_add_cmd "19" "set"
acc_add_cmd "21" "+aim"
acc_add_cmd "21" "+aimkey"
acc_add_cmd "21" "wpnAWP"
acc_add_cmd "22" "xdaa_esp"
acc_add_cmd "22" "MinDistance"
acc_add_cmd "23" "hackhooked"
acc_add_cmd "23" "config_deagle"
acc_add_cmd "23" "+thrushoot"
acc_add_cmd "23" "soundesp_s"
acc_add_cmd "24" "wall_hack"
acc_add_cmd "24" "wall_cool"
acc_add_cmd "24" "rem_flash"
acc_add_cmd "24" "#AK47"
acc_add_cmd "25" "+ltfxv4"
acc_add_cmd "25" "togglehlss"
acc_add_cmd "25" "wc_human"
acc_add_cmd "25" "powerup_esp"
acc_add_cmd "26" "hb_nullweapon"
acc_add_cmd "26" "hb_deagle"
acc_add_cmd "26" "antislowhacks"
acc_add_cmd "27" "cd_version"
acc_add_cmd "27" "cdon"
acc_add_cmd "28" "fpt_menu"
acc_add_cmd "29" "multiname"
acc_add_cmd "30" "kyk_bhop"
acc_add_cmd "30" "+ramp"
acc_add_cmd "30" "+spowolnienie666"
acc_add_cmd "30" "+jumpbug3"
acc_add_cmd "31" "awalk"
acc_add_cmd "31" "speed_mod"
acc_add_cmd "31" "silenton"
acc_add_cmd "31" "swon"
acc_add_cmd "31" "FDD"
acc_add_cmd "31" "+fastrun"
acc_add_cmd "32" "+fastgs4"
acc_add_cmd "33" "xHack_chat"
acc_add_cmd "34" "knife-numbers"
acc_add_cmd "34" "+knifehead"
acc_add_cmd "34" "+knifefirepovorot"
acc_add_cmd "34" "+headleftfire"
acc_add_cmd "34" "+interpfire"
acc_add_cmd "34" "+qslash"
acc_add_cmd "34" "+un.head1"
acc_add_cmd "34" "+shot1back"
acc_add_cmd "34" "+back-knife-fire"
acc_add_cmd "34" "+gorightfire"
acc_add_cmd "34" "+backleftfire"
acc_add_cmd "34" "+ddfire"
acc_add_cmd "34" "knivespeed"
acc_add_cmd "35" "+reloadCover"
acc_add_cmd "36" "cycle"
acc_add_cmd "38" "+bog_aim"
acc_add_cmd "39" "xkz_exec"
acc_add_cmd "39" "xHack_chat"
acc_add_cmd "39" "+christcs"
acc_add_cmd "39" "ltfxv4"
acc_add_cmd "40" "+aj"
acc_add_cmd "40" "ajf+"
acc_add_cmd "40" "sp1"
acc_add_cmd "40" "noflash"
acc_add_cmd "40" "af"
acc_add_cmd "41" "oaim"
acc_add_cmd "41" "xxxfov"
acc_add_cmd "41" "159esp"
acc_add_cmd "41" "skint"
acc_add_cmd "41" "+aimshoot"
acc_add_cmd "42" "lightchange"
acc_add_cmd "43" "CleanScreen"
acc_add_cmd "43" "HitPointDraw"
acc_add_cmd "44" "cross"
acc_add_cmd "44" "wallmode"
acc_add_cmd "44" "wire"
acc_add_cmd "44" "absohack"

Хотя каждый раз за m_flBoxESP банит. Почему не с первого уровня начинает посылать алиасы (acc_add_cmd "1" "crash1"), либо если сразу 7 уровень оно проверяет со старта то почему не начинается с этого: acc_add_cmd "7" "headhitbox", - который идёт первым в конфиге?
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
szawesome, проверяет с первого, просто остальные не блокируются.
 
Сообщения
42
Реакции
32
Pokemoshka, спасибо! Описание читал, просто не так понял эту фразу
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу