Не верный синтаксис бана

Сообщения
321
Реакции
73
Помог
11 раз(а)
Ошибка
USE: amx_ban <time in mins> <steamID or nickname or #authid or IP> <reason>
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5249
Билд
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.692-dev-mpatch
ReGamedll
ReGameDLL version: 5.11.0.420-dev+m
Версия Metamod
Metamod-r v1.3.0.128
Список метамодулей
[ 1] Reunion       RUN   -    reunion_mm_i386.so         v0.1.75          ini  Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5249 ini Start ANY
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 5] Revoice RUN - revoice_mm_i386.so v0.1.0.31 ini Start Never
[ 6] ReParachute RUN - parachute_amxx_i386.so v1.1 Beta pl3 ANY ANY
[ 7] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite pl3 ANY ANY
[ 8] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[ 9] Engine RUN - engine_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[11] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[14] MySQL RUN - mysql_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[15] ReAPI RUN - reapi_amxx_i386.so v5.10.0.188-dev pl3 ANY Never
[16] CURL AMXX RUN - curl_amxx_i386.so v1.1.1 pl3 ANY ANY
16 plugins, 16 running
Список плагинов
[  1] FreshBans               1.3.8b      kanagava          fresh_bans_138_  running  
[ 2] DopBan 3.0.3b kanagava dop_ban303_.amx running
[ 3] Admin Loader 2.6.2 neygomon admin_loader.am running
[ 4] Anticheat 3.1.6 ctr52 anticheat.amxx running
[ 5] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 6] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 7] Knife DeathMatch 1.1 Lucky knifedm.amxx debug
[ 8] SpacePK.ru DM BlockRad 1.0 You? blockradio.amxx running
[ 9] Custom Models 1.3.2 neugomon custom_models.a running
[ 10] Block Change Name 1.0 DJ_WEST block_change_na running
[ 11] MG Grab 1.0 Nickron mg_grab.amxx running
[ 12] HATS 0.2 SgtBane Hats02.amxx running
[ 13] Admin Commands Log 16.10.2018 w0w admin_commands_ running
[ 14] Lite Hook 1.0 OverGame lite_hook.amxx running
[ 15] Players Menu 1.3.2 neugomon players_menu.am debug
[ 16] Gag System 1.1 TheRedShoko @ AM gag_system.amxx running
[ 17] Sky change helper 0.1 AMXX.Shop sky_change_help running
[ 18] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 19] Advert Messages 1.22 neygomon adverts.amxx running
[ 20] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_add running
[ 21] Chat Checker 0.1a Subb98 chat_checker.am running
[ 22] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 23] Train Killer 1.0 Pastout! trainkiller.amx running
[ 24] Chat Logger 2.1a Jim chat_logger.amx running
[ 25] Spray Block 1.0 maFFyoZZyk Spray_Block.amx running
[ 26] Reset Score ReFreshed 0.0.1 wopox1337@Dev-CS ResetScore_ReFr running
[ 27] Advanced Client Checke 0.3.6 Mistrick cmdchecker.amxx debug
[ 28] Admin Chat 1.9.0.5249 AMXX Dev Team adminchat.amxx running
[ 29] Admin Commands 1.9.0.5249 AMXX Dev Team admincmd.amxx running
[ 30] Menus Front-End 1.5 untest neugomon menufront_end.a running
[ 31] Commands Menu 1.9.0.5249 AMXX Dev Team cmdmenu.amxx running
[ 32] Advanced Rechecker 0.4 F@nt0M rechecker.amxx running
[ 33] Teleport Menu 1.9.0.5249 AMXX Dev Team telemenu.amxx running
[ 34] Maps Menu 1.9.0.5249 AMXX Dev Team mapsmenu.amxx running
[ 35] Stats Configuration 1.9.0.5249 AMXX Dev Team statscfg.amxx running
[ 36] CS Stats Logging 1.9.0.5249 AMXX Dev Team stats_logging.a running
[ 37] CS Misc. Stats 1.9.0.5249 AMXX Dev Team miscstats.amxx debug
[ 38] plugin_trail 1.3.1 Bahrmanou plugin_trail.am running
[ 39] Knife Duels 2.0.5 Adrenaline's Wra KnifeDuels.amxx running
[ 40] BUYADM 1 LAW motd_v1.amxx running
[ 41] BUYADM 1 LAW motdrules.amxx running
[ 42] Camera Changer 1.3 Bl0ck Camera_Changer. running
[ 43] Unlimited ChooseTeam ( 1.0 ConnorMcLeod & p unlimited_choos running
[ 44] Bypass Guard 1.0.1 mx?! bypass_guard.am running
[ 45] High Ping Kicker 1.0 Shadow/Bo0m! amx_hpk.amxx running
[ 46] PsychoStats Plugin 1.1 Stormtrooper ps_heatmaps.amx running
[ 47] Show timeleft for CSDM 1.0 neygomon timer.amxx running
[ 48] Auto Kick HLTV 0.3 Subb98 auto_kick_hltv. running
[ 49] [KZ] Anti Cheat 1.0 deniS & Fame kzanticheat.amx running
[ 50] Play or Be Kicked 1.5.243 Brad Jones pbk.amxx running
[ 51] [BG] Provider: iphub.i 0.4-curl mx?! bg_provider_iph running
[ 52] [BG] Provider: GeoIP 0.2 mx?! bg_provider_geo running
[ 53] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 54] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 55] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
55 plugins, 55 running
Автор плагина
deniS & Fame
Версия плагина
1.0
Исходный код
/* Here you can edit main settings */

#define BHOP_DETECTION
#define DUCK_DETECTION
//#define STRAFE_DETECTION
//#define FPS_DETECTION
#define CMDS_DETECTION

#define LOGGING

#define g_szPrefix "^1[^4AntiCheat^1]"

#define ADMIN_ACCESS ADMIN_BAN

/* Ban System
*
* 0 - Default (amx_ban <#userid> <minutes> [reason])
* 1 - Custom (*_ban <minutes> <#userid> [reason])
*/

#define BAN_SYSTEM 1

/* Here you stop */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <nvault>

#if AMXX_VERSION_NUM < 183
#include "colorchat"

#define MAX_PLAYERS 32
#define MAX_NAME_LENGTH 32
#else
#define client_disconnect client_disconnected
#endif

#define MAX_PLAYERS_ARR MAX_PLAYERS+1

#pragma semicolon 1
#pragma tabsize 4

#define set_bit(%1,%2) (%1 |= (1<<(%2&31)))
#define get_bit(%1,%2) (%1 & (1<<(%2&31)))
#define clr_bit(%1,%2) (%1 &= ~(1<<(%2&31)))

enum _:AC_FILES
{
Bhop,
Gstrafe,
Commands
}

#if defined LOGGING
new g_szLogFile[AC_FILES][64];

new const AC_FILES_NAME[AC_FILES][] =
{
"Bhop",
"Gstrafe",
"Commands"
};
#endif

new g_iVault;

new g_iFlags[MAX_PLAYERS_ARR], g_iButtons[MAX_PLAYERS_ARR], g_iOldButtons[MAX_PLAYERS_ARR];
new g_bBot, g_bPunished;

#if defined BHOP_DETECTION
#include <anticheat/ac_bhop.inl>
#endif

#if defined DUCK_DETECTION
#include <anticheat/ac_gstrafe.inl>
#endif

#if defined STRAFE_DETECTION
#include <anticheat/ac_strafe.inl>
#endif

#if defined FPS_DETECTION
#include <anticheat/ac_fps.inl>
#endif

#if defined CMDS_DETECTION
#include <anticheat/ac_commands.inl>
#endif

#define PLUGIN "[KZ] Anti Cheat"

#define VERSION "1.0"
#define AUTHOR "deniS & Fame"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

register_cvar("ac_version", VERSION, FCVAR_SERVER | FCVAR_SPONLY);
set_cvar_string("ac_version", VERSION);

register_forward(FM_CmdStart, "fwdCmdStart");

register_forward(FM_PlayerPreThink, "fwdPlayerPreThink");
register_forward(FM_PlayerPostThink, "fwdPlayerPostThink");

#if defined BHOP_DETECTION
ac_bhop_init();
#endif

#if defined DUCK_DETECTION
ac_gstrafe_init();
#endif

#if defined CMDS_DETECTION
ac_cmds_init();
#endif
}

public plugin_cfg()
{
#if defined LOGGING
new szLogsDir[64];
get_localinfo("amxx_logs", szLogsDir, charsmax(szLogsDir));

add(szLogsDir, charsmax(szLogsDir), "/anticheat");

if (!dir_exists(szLogsDir))
mkdir(szLogsDir);

for (new i = 0; i < AC_FILES; i++)
formatex(g_szLogFile[i], charsmax(g_szLogFile[]), "%s/%s.log", szLogsDir, AC_FILES_NAME[i]);
#endif

g_iVault = nvault_open("ac_stats");

if (g_iVault == INVALID_HANDLE)
log_amx("kzanticheat.sma: plugin_cfg:: can't open file ^"ac_stats.vault^"!");

#if defined CMDS_DETECTION
ac_cmds_cfg();
#endif
}

public client_putinserver(id)
{
if (is_user_bot(id))
set_bit(g_bBot, id);

if (!get_bit(g_bBot, id) && g_iVault != INVALID_HANDLE)
{
new szAuthID[32];
get_user_authid(id, szAuthID, charsmax(szAuthID));

new szData[256], iTimeStamp;

if (nvault_lookup(g_iVault, szAuthID, szData, charsmax(szData), iTimeStamp))
{
new szBhops[3], szBhopsFOG[3][3], szGE_BhopsIAR[3][3], szPerfectBhops[3], szDistrBhops[3];
new szGE_BhopsWarns[2], szPerfectBhopsWarns[2], szDistrBhopsWarns[2], szBhopWarns[2];

new szDucks[3], szDucksFOG[3][3], szGE_DucksIAR[3][3], szGE_DucksIAR_Sessions[3][2];
new szNsdWarns[2], szGE_DucksWarns[2], szDuckWarns[2];

parse(szData,
szBhops, charsmax(szBhops),
szBhopsFOG[0], charsmax(szBhopsFOG[]), szGE_BhopsIAR[0], charsmax(szGE_BhopsIAR[]),
szBhopsFOG[1], charsmax(szBhopsFOG[]), szGE_BhopsIAR[1], charsmax(szGE_BhopsIAR[]),
szBhopsFOG[2], charsmax(szBhopsFOG[]), szGE_BhopsIAR[2], charsmax(szGE_BhopsIAR[]),
szPerfectBhops, charsmax(szPerfectBhops),
szDistrBhops, charsmax(szDistrBhops),
szGE_BhopsWarns, charsmax(szGE_BhopsWarns),
szPerfectBhopsWarns, charsmax(szPerfectBhopsWarns),
szDistrBhopsWarns, charsmax(szDistrBhopsWarns),
szBhopWarns, charsmax(szBhopWarns),
szDucks, charsmax(szDucks),
szDucksFOG[0], charsmax(szDucksFOG[]), szGE_DucksIAR[0], charsmax(szGE_DucksIAR[]), szGE_DucksIAR_Sessions[0], charsmax(szGE_DucksIAR_Sessions[]),
szDucksFOG[1], charsmax(szDucksFOG[]), szGE_DucksIAR[1], charsmax(szGE_DucksIAR[]), szGE_DucksIAR_Sessions[1], charsmax(szGE_DucksIAR_Sessions[]),
szDucksFOG[2], charsmax(szDucksFOG[]), szGE_DucksIAR[2], charsmax(szGE_DucksIAR[]), szGE_DucksIAR_Sessions[2], charsmax(szGE_DucksIAR_Sessions[]),
szNsdWarns, charsmax(szNsdWarns),
szGE_DucksWarns, charsmax(szGE_DucksWarns),
szDuckWarns, charsmax(szDuckWarns));

g_iBhops[id] = str_to_num(szBhops);

for (new i = 0; i < 3; i++)
{
g_iBhopsFOG[id][i] = str_to_num(szBhopsFOG[i]);
g_iGE_BhopsIAR[id][i] = str_to_num(szGE_BhopsIAR[i]);
g_flGE_BhopsPercent[id][i] = float(g_iBhopsFOG[id][i]) / float(g_iBhops[id]) * 100.0;
}

g_iPerfectBhops[id] = str_to_num(szPerfectBhops);
g_flPerfectBhopsPercent[id] = float(g_iPerfectBhops[id]) / float(g_iBhops[id]) * 100.0;
g_iDistrBhops[id] = str_to_num(szDistrBhops);
g_flDistrBhopsPercent[id] = float(g_iDistrBhops[id]) / float(g_iBhops[id]) * 100.0;

g_iDucks[id] = str_to_num(szDucks);

for (new i = 0; i < 3; i++)
{
g_iDucksFOG[id][i] = str_to_num(szDucksFOG[i]);
g_iGE_DucksIAR[id][i] = str_to_num(szGE_DucksIAR[i]);
g_iGE_DucksIAR_Sessions[id][i] = str_to_num(szGE_DucksIAR_Sessions[i]);
g_flGE_DucksPercent[id][i] = float(g_iDucksFOG[id][i]) / float(g_iDucks[id]) * 100.0;
}

if ((get_systime() - iTimeStamp) / 86400 < 1)
{
g_iGE_BhopsWarns[id] = str_to_num(szGE_BhopsWarns);
g_iPerfectBhopsWarns[id] = str_to_num(szPerfectBhopsWarns);
g_iDistrBhopsWarns[id] = str_to_num(szDistrBhopsWarns);
g_iBhopWarns[id] = str_to_num(szBhopWarns);

g_iNsdWarns[id] = str_to_num(szNsdWarns);
g_iGE_DucksWarns[id] = str_to_num(szGE_DucksWarns);
g_iDuckWarns[id] = str_to_num(szDuckWarns);
}

nvault_remove(g_iVault, szAuthID);
}
}
}

public client_disconnect(id)
{
if (get_bit(g_bBot, id))
{
clr_bit(g_bBot, id);
return PLUGIN_CONTINUE;
}

if (!get_bit(g_bPunished, id) && g_iVault != INVALID_HANDLE)
{
new szAuthID[32];
get_user_authid(id, szAuthID, charsmax(szAuthID));

new szData[256];
formatex(szData, charsmax(szData),
"^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^"\
^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^" ^"%d^"",
g_iBhops[id],
g_iBhopsFOG[id][0], g_iGE_BhopsIAR[id][0],
g_iBhopsFOG[id][1], g_iGE_BhopsIAR[id][1],
g_iBhopsFOG[id][2], g_iGE_BhopsIAR[id][2],
g_iPerfectBhops[id],
g_iDistrBhops[id],
g_iGE_BhopsWarns[id],
g_iPerfectBhopsWarns[id],
g_iDistrBhopsWarns[id],
g_iBhopWarns[id],
g_iDucks[id],
g_iDucksFOG[id][0], g_iGE_DucksIAR[id][0], g_iGE_DucksIAR_Sessions[id][0],
g_iDucksFOG[id][1], g_iGE_DucksIAR[id][1], g_iGE_DucksIAR_Sessions[id][1],
g_iDucksFOG[id][2], g_iGE_DucksIAR[id][2], g_iGE_DucksIAR_Sessions[id][2],
g_iNsdWarns[id],
g_iGE_DucksWarns[id],
g_iDuckWarns[id]);

nvault_set(g_iVault, szAuthID, szData);
}

#if defined BHOP_DETECTION
ac_bhop_disconnect(id);
#endif

#if defined DUCK_DETECTION
ac_gstrafe_disconnect(id);
#endif

#if defined FPS_DETECTION
ac_fps_disconnected(id);
#endif

if (get_bit(g_bPunished, id))
clr_bit(g_bPunished, id);

return PLUGIN_CONTINUE;
}

public fwdCmdStart(id, uc_handle, seed)
{
if (!is_user_alive(id) || get_bit(g_bBot, id) || get_bit(g_bPunished, id))
return FMRES_IGNORED;

#if defined DUCK_DETECTION
ac_gstrafe_CmdStart(id, uc_handle);
#endif

#if defined STRAFE_DETECTION
ac_strafe_CmdStart(id, uc_handle);
#endif

#if defined FPS_DETECTION
ac_fps_CmdStart(id, uc_handle);
#endif

return FMRES_IGNORED;
}

public fwdPlayerPreThink(id)
{
if (!is_user_alive(id) || get_bit(g_bBot, id) || get_bit(g_bPunished, id))
return FMRES_IGNORED;

g_iFlags[id] = pev(id, pev_flags);
g_iButtons[id] = pev(id, pev_button);
g_iOldButtons[id] = pev(id, pev_oldbuttons);

#if defined BHOP_DETECTION
ac_bhop_PlayerPreThink(id);
#endif

#if defined DUCK_DETECTION
ac_gstrafe_PlayerPreThink(id);
#endif

return FMRES_IGNORED;
}

public fwdPlayerPostThink(id)
{
if (!is_user_alive(id) || get_bit(g_bBot, id) || get_bit(g_bPunished, id))
return FMRES_IGNORED;

#if defined FPS_DETECTION
ac_fps_PlayerPostThink(id);
#endif

return FMRES_IGNORED;
}

stock PunishPlayer(id, szHack[192], iTime = 0)
{
new szName[MAX_NAME_LENGTH];
get_user_name(id, szName, MAX_NAME_LENGTH - 1);

client_print_color(0, id, "%s^3 %s^1 is using^3 %s", g_szPrefix, szName, szHack);

set_bit(g_bPunished, id);

replace_all(szHack, charsmax(szHack), "^1", "");
replace_all(szHack, charsmax(szHack), "^3", "");
replace_all(szHack, charsmax(szHack), "^4", "");

#if defined LOGGING
switch (szHack[0])
{
case 'B':
{
LogPlayer(id, Bhop,
"^n| Bhop Stats(last session) and Warnings:^n^n\
| Bhops: %d^n\
| GroundFrames(1): %d|%d|%.2f%%^n\
| GroundFrames(2): %d|%d|%.2f%%^n\
| GroundFrames(3, 4, 5): %d|%d|%.2f%%^n\
| Perfect Bhops: %d|%.2f%%^n\
| Ideally Distr. Bhops: %d|%.2f%%^n\
| Jump Cmds. Ratio: %.2f^n\
| Max Jump Cmds. IAR: %d^n^n\
| Ground Equal Bhops Warns: %d^n\
| Perfect Bhops Warns: %d^n\
| Ideally Distr. Bhops Warns: %d^n\
| Total Bhop Warnings: %d",
g_iBhops[id],
g_iBhopsFOG[id][0], g_iGE_BhopsIAR[id][0], g_flGE_BhopsPercent[id][0],
g_iBhopsFOG[id][1], g_iGE_BhopsIAR[id][1], g_flGE_BhopsPercent[id][1],
g_iBhopsFOG[id][2], g_iGE_BhopsIAR[id][2], g_flGE_BhopsPercent[id][2],
g_iPerfectBhops[id], g_flPerfectBhopsPercent[id],
g_iDistrBhops[id], g_flDistrBhopsPercent[id],
g_flJumpCmdsRatio[id],
g_iMaxJumpCmdsIAR[id],
g_iGE_BhopsWarns[id],
g_iPerfectBhopsWarns[id],
g_iDistrBhopsWarns[id],
g_iBhopWarns[id]);
}

case 'G':
{
LogPlayer(id, Gstrafe, "^n| Duck Stats(last session) and Warnings:^n^n\
| Ducks: %d^n\
| GroundFrames(1): %d|%d|%d|%.2f%%^n\
| GroundFrames(2): %d|%d|%d|%.2f%%^n\
| GroundFrames(3, 4, 5): %d|%d|%d|%.2f%%^n\
| NSD Warns: %d^n\
| Ground Equal Ducks Warns: %d^n\
| Total Duck Warnings: %d",
g_iDucks[id],
g_iDucksFOG[id][0], g_iGE_DucksIAR[id][0], g_iGE_DucksIAR_Sessions[id][0], g_flGE_DucksPercent[id][0],
g_iDucksFOG[id][1], g_iGE_DucksIAR[id][1], g_iGE_DucksIAR_Sessions[id][1], g_flGE_DucksPercent[id][1],
g_iDucksFOG[id][2], g_iGE_DucksIAR[id][2], g_iGE_DucksIAR_Sessions[id][2], g_flGE_DucksPercent[id][2],
g_iNsdWarns[id],
g_iGE_DucksWarns[id],
g_iDuckWarns[id]);//useless atm
}
case 'c'://Restricted Commands
{
LogPlayer(id, Commands, "^n| Bad %s", szHack);
}
}
#endif

#if defined BAN_SYSTEM 0
server_cmd("amx_ban #%d ^"%d^" ^"%s Detected^"", get_user_userid(id), iTime, szHack);
#else
server_cmd("amx_ban ^"%d^" #%d ^"%s Detected^"", iTime, get_user_userid(id), szHack);
#endif
}

#if defined LOGGING
stock LogPlayer(id, iLogFile, szFmt[], any: ...)
{
new fp = fopen(g_szLogFile[iLogFile], "at");

if (fp)
{
new szTime[22], szName[MAX_NAME_LENGTH], szAuthID[32], szIP[21];
static szMessage[512];

get_time("%m/%d/%Y - %H:%M:%S", szTime, charsmax(szTime));
get_user_name(id, szName, MAX_NAME_LENGTH - 1);
get_user_authid(id, szAuthID, charsmax(szAuthID));
get_user_ip(id, szIP, charsmax(szIP), 1);

vformat(szMessage, charsmax(szMessage), szFmt, 4);

fprintf(fp, "+---^n| L %s: %s<%s><%s> %s^n+---^n^n", szTime, szName, szAuthID, szIP, szMessage);
fclose(fp);
}
else
log_amx("kzanticheat.sma: LogPlayer():: can't open file ^"%s^"!", g_szLogFile[iLogFile]);
}
#endif

public plugin_end()
{
ac_cmds_end();

if (g_iVault != INVALID_HANDLE)
nvault_close(g_iVault);
}
Помогите, почему не срабатывает бан при детекте?
#if defined BAN_SYSTEM 0
server_cmd("amx_ban #%d ^"%d^" ^"%s Detected^"", get_user_userid(id), iTime, szHack);
#else
server_cmd("amx_ban ^"%d^" #%d ^"%s Detected^"", iTime, get_user_userid(id), szHack);
#endif
 
Сообщения
1,304
Реакции
2,303
Помог
57 раз(а)
Angerfist, стоковая функция PunishPlayer() вероятно в каком-то из инлеев используется, приложите всё сопутствующие инлеи (.inl-файлы) хотя бы.

Навскидку, можно попробовать
Код:
    #if defined BAN_SYSTEM 0
        server_cmd("amx_ban #%d ^"%d^" ^"%s Detected^"", get_user_userid(id), iTime, szHack);
    #else
        server_cmd("amx_ban ^"%d^" #%d ^"%s Detected^"", iTime, get_user_userid(id), szHack);
    #endif
---->
Код:
    #if defined BAN_SYSTEM 0
        server_cmd("amx_ban #%d %d ^"%s Detected^"", get_user_userid(id), iTime, szHack);
    #else
        server_cmd("amx_ban %d #%d ^"%s Detected^"", iTime, get_user_userid(id), szHack);
    #endif
^"%d^" заменить на %d

Если не поможет, можно дебаг добавить, посмотреть доходит ли вообще до функции наказания.
 
Сообщения
321
Реакции
73
Помог
11 раз(а)
BlackSignature заменил как ты написал, все равно ошибка бана выскакивает. Может это из-за того что я исходник переименовал? В sma строки anticheat -> в kzanticheat, inc. не могу прикрепить, с телефона сижу. Но я в них ничего не менял, ссылка на сам античит https://dev-cs.ru/resources/176/
 

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

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