Плагин по выдачи флага работает не корректно

Сообщения
59
Реакции
10
Ошибка
Перестал стабильно выдавать флаг
ОС
Linux
Amx Mod X
AMX Mod X 1.10.0.5461 (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: Dec 6 2021 10:40:01
Built from: https://github.com/alliedmodders/amxmodx/commit/ec82e3f
Build ID: 5461:ec82e3f
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.11.0.767-dev
Build date: 03:13:55 Oct 25 2021 (2753)
Build from: https://github.com/dreamstalker/rehlds/commit/471158b
ReGamedll
ReGameDLL version: 5.21.0.540-dev
Build date: 17:33:16 Oct 25 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/b9cccc6
Версия 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
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.92d ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5461 ini Start ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 5] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 6] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 7] MySQL RUN - mysql_amxx_i386.so v1.10.0.5461 pl3 ANY ANY
[ 8] CSX RUN - csx_amxx_i386.so v1.10.0.5461 pl3 ANY ANY
[ 9] AuthEmu RUN - authemu_amxx_i386.so v5.2.12.431 pl3 ANY Never
[10] Admins Kit RUN - adminskit_amxx_i386.so v2.0.0 Beta2 pl3 ANY ANY
[11] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5461 pl3 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5461 pl3 ANY ANY
[13] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5461 pl3 ANY ANY

[14] Engine RUN - engine_amxx_i386.so v1.10.0.5461 pl3 ANY ANY
[15] ReAPI RUN - reapi_amxx_i386.so v5.21.0.248-dev pl3 ANY Never
[16] Fun RUN - fun_amxx_i386.so v1.10.0.5461 pl3 ANY ANY
[17] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl3 ANY Never
[18] SxGeo RUN - sxgeo_amxx_i386.so v2.2 pl3 ANY Never
18 plugins, 18 running
Список плагинов
Currently loaded plugins:
id name version author url file status
[ 1] 0 Admin Base 1.10.0.546 AMXX Dev Team admin.amxx running
[ 2] 1 Admin Commands 1.10.0.546 AMXX Dev Team admincmd.am debug
[ 3] 2 Admin Help 1.10.0.546 AMXX Dev Team adminhelp.a running
[ 4] 3 Slots Reservation 1.10.0.546 AMXX Dev Team adminslots. running
[ 5] 4 Multi-Lingual System 1.10.0.546 AMXX Dev Team multilingua running
[ 6] 5 Menus Front-End 1.10.0.546 AMXX Dev Team menufront.a running
[ 7] 6 Commands Menu 1.10.0.546 AMXX Dev Team cmdmenu.amx running
[ 8] 7 Players Menu 1.10.0.546 AMXX Dev Team plmenu.amxx running
[ 9] 8 Teleport Menu 1.10.0.546 AMXX Dev Team telemenu.am running
[ 10] 9 Maps Menu 1.10.0.546 AMXX Dev Team mapsmenu.am running

[ 11] 10 Plugin Menu 1.10.0.546 AMXX Dev Team pluginmenu. running
[ 12] 11 Admin Chat 1.10.0.546 AMXX Dev Team adminchat.a running
[ 13] 12 Anti Flood 1.10.0.546 AMXX Dev Team antiflood.a running
[ 14] 13 Admin Votes 1.10.0.546 AMXX Dev Team adminvote.a running
[ 15] 14 Map Manager: Core 3.0.4 Mistrick map_manager running
[ 16] 15 Map Manager: Scheduler 0.1.2 Mistrick map_manager running
[ 17] 16 Map Manager: Rtv 0.1.0 Mistrick map_manager running
[ 18] 17 Map Manager: Nominatio 0.1.0 Mistrick map_manager running
[ 19] 18 Map Manager: BlockList 0.0.3 Mistrick map_manager running
[ 20] 19 Map Manager: Online so 0.0.2 Mistrick map_manager running
[ 21] 20 Map Manager: Effects 0.0.8 Mistrick map_manager running

[ 22] 21 Pause Plugins 1.10.0.546 AMXX Dev Team pausecfg.am running
[ 23] 22 Stats Configuration 1.10.0.546 AMXX Dev Team statscfg.am running
[ 24] 23 CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sq running
[ 25] 24 AES: StatsX 2 0.5 Vega serfreeman1337 aes_statsx_ running
[ 26] 25 StatsX 1.10.0.546 AMXX Dev Team statsx_n.am running
[ 27] 26 CS Misc. Stats 1.10.0.546 AMXX Dev Team miscstats.a debug
[ 28] 27 [AZ] Graffiti System R3.6 XxXx#xXxX Graffiti_Sy debug
[ 29] 28 DevMs ForkFlag 1.0 gyxoBka DevMs_ForkF running
[ 30] 29 DevMsCore 1.2 gyxoBka DevMs_Core. running
[ 31] 30 DevMs Flag 1.1 gyxoBka DevMs_Flag. running
[ 32] 31 ReGunGame 2.6.5 gyxoBka re_gungame. debug

[ 33] 32 ReGGStatsX 1.4 gyxoBka ReGGStatsX. running
[ 34] 33 GunGame Motd 1.0.3 gyxoBka re_ggmotd.a running
[ 35] 34 ReGG FFlevel fork 1.3.1 nobody re_ggffleve running
[ 36] 35 ADV. QUAKE SOUNDS 5.0 HATTRICK (HTTRCK QuakeSounds debug
[ 37] 36 QuakeSound Combo Messa 1.1 juice Mode IDC qscombo.amx running
[ 38] 37 DM AutoBalance 1.0.0 Nordic Warrior AutoBalance running
[ 39] 38 RE Vampire 1.0.4 MakapoH, AcE re_vampire. running
[ 40] 39 Models Manager 1.4.2 gyxoBka ModelsManag debug
[ 41] 40 No Shoot Through Walls 0.0.2 hornet & the_hun no_walls.am running
[ 42] 41 Lite VoteBan 1.4 neygomon lite_voteba debug
[ 43] 42 ReAimDetector API 0.2.2 ReHLDS Team reaimdetect debug

[ 44] 43 Advanced Gag 1.9.0 neygomon unknown amx_gag.amx running
[ 45] 44 AFK Control 1.4.1 [NoR neygomon afk_control running
[ 46] 45 [ReAPI] Block 'Fire in 0.0.1 sergrib reapi_block running
[ 47] 46 [SxGeo] Connect Info 1.0 s1lent sxgeo_conne running
[ 48] 47 Kick Spamers 1.0.3c gyxoBka KickSpamer. running
[ 49] 48 Hats 1.5 Psycrow next21_hats running
[ 50] 49 AuthEmu API 1.0 Dev-MS Team authemu.amx running
[ 51] 50 Damager 0.0.5 steelzzz damager.amx running
[ 52] 51 AntiDaun 210413-01 dezInto antidaun003 running
[ 53] 52 Rates Checker 1.7 pRED* ratescheck. running
[ 54] 53 FPS Control 1.1.0 dezInto fps_control running

[ 55] 54 TeamMenu 1.0 gyxoBka gg_teammenu debug
[ 56] 55 AES: StatsX Info Rank 0.1 serfreeman1337 aes_statsx_ running
[ 57] 56 AuthEmu Hint (mod) 1.3.2 gyxoBka AuthEmuHint running
[ 58] 57 Spec Banner 0.0.1 PurposeLess specbanner. running
[ 59] 58 GSClient Auth 1.0 Dev-MS.ru gsclient.am running
59 plugins, 59 running
Автор плагина
gyxoBka
Версия плагина
1.0
Исходный код
#include <amxmodx>
#include <authemu>

new const PLUGIN[] = "DevMs ForkFlag";
new const VERSION[] = "1.0";
new const AUTHOR[] = "gyxoBka";

new const g_szFlags[] = "n";

new g_iFlags;

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

register_srvcmd("rc_fork_detect", "cmdForkDetect");

g_iFlags = read_flags(g_szFlags);
}

public cmdForkDetect()
{
new szName[32], iPlayer;

read_argv(1, szName, charsmax(szName));
log_to_file("log.txt", "szName: '%s'", szName);

iPlayer = get_user_index(szName);

if(iPlayer > 0 && is_user_authemu(iPlayer))
set_user_flags(iPlayer, g_iFlags);

return PLUGIN_HANDLED
}
Сначала ReChecker чекает хеш файла GameMenu.res

"/resource/GameMenu.res" 2c0873b3 "rc_fork_detect [name]"

Он это делает исправно.

L 01/06/2022 - 09:27:49: -> file: (/resource/GameMenu.res), exphash: (b373082c), got: (b373082c), typeFind: (exists), prevhash: (a0890ed9), (#1951)(KOPOHABuPyC), prevfile: (sprites/fast_wallpuff1.spr), findathash: (null), md5hex: (2c0873b3), ex: (0)
L 01/06/2022 - 09:27:49: -> ExecuteCMD: (rc_fork_detect KOPOHABuPyC), for (#1951)(KOPOHABuPyC)
L 01/06/2022 - 09:27:50: -> file: (/resource/GameMenu.res), exphash: (b373082c), got: (b373082c), typeFind: (exists), prevhash: (a0890ed9), (#1971)(17rus tyva), prevfile: (sprites/fast_wallpuff1.spr), findathash: (/resource/GameMenu.res), md5hex: (2c0873b3), ex: (0)
L 01/06/2022 - 09:27:50: -> ExecuteCMD: (rc_fork_detect 17rus tyva), for (#1971)(17rus tyva)
L 01/06/2022 - 09:27:50: -> file: (/resource/GameMenu.res), exphash: (b373082c), got: (b373082c), typeFind: (exists), prevhash: (a0890ed9), (#1975)(`баян), prevfile: (sprites/fast_wallpuff1.spr), findathash: (/resource/GameMenu.res), md5hex: (2c0873b3), ex: (0)
L 01/06/2022 - 09:27:50: -> ExecuteCMD: (rc_fork_detect баян), for (#1975)(баян)
L 01/06/2022 - 09:32:32: -> file: (/resource/GameMenu.res), exphash: (b373082c), got: (b373082c), typeFind: (exists), prevhash: (a0890ed9), (#1978)(17rus tyva), prevfile: (sprites/fast_wallpuff1.spr), findathash: (/resource/GameMenu.res), md5hex: (2c0873b3), ex: (0)
L 01/06/2022 - 09:32:32: -> ExecuteCMD: (rc_fork_detect 17rus tyva), for (#1978)(17rus tyva)
L 01/06/2022 - 09:41:30: -> file: (/resource/GameMenu.res), exphash: (b373082c), got: (b373082c), typeFind: (exists), prevhash: (a0890ed9), (#1982)(17rus tyva), prevfile: (sprites/fast_wallpuff1.spr), findathash: (/resource/GameMenu.res), md5hex: (2c0873b3), ex: (0)
L 01/06/2022 - 09:41:30: -> ExecuteCMD: (rc_fork_detect 17rus tyva), for (#1982)(17rus tyva)
L 01/06/2022 - 09:43:59: -> file: (/resource/GameMenu.res), exphash: (b373082c), got: (b373082c), typeFind: (exists), prevhash: (a0890ed9), (#1988)(kombo), prevfile: (sprites/fast_wallpuff1.spr), findathash: (/resource/GameMenu.res), md5hex: (2c0873b3), ex: (0)
L 01/06/2022 - 09:43:59: -> ExecuteCMD: (rc_fork_detect kombo), for (#1988)(kombo)

Далее плагин "DevMs ForkFlag" должен дать флаг n тем у кого совпал хеш файла GameMenu.res
Плагин "DevMs ForkFlag" исправно пишет логи
L 01/06/2022 - 08:39:49: szName: '`баян'
L 01/06/2022 - 08:39:50: szName: 'KOPOHABuPyC'
L 01/06/2022 - 08:52:59: szName: 'Scorpio'
L 01/06/2022 - 08:55:16: szName: 'Scorpio'
L 01/06/2022 - 08:55:17: szName: 'KOPOHABuPyC'
L 01/06/2022 - 08:55:18: szName: '`баян'
L 01/06/2022 - 09:05:11: szName: '17rus'
L 01/06/2022 - 09:11:54: szName: 'Scorpio'
L 01/06/2022 - 09:11:55: szName: '`баян'
L 01/06/2022 - 09:11:56: szName: 'KOPOHABuPyC'
L 01/06/2022 - 09:11:56: szName: '17rus'
L 01/06/2022 - 09:27:49: szName: 'KOPOHABuPyC'
L 01/06/2022 - 09:27:50: szName: '17rus'
L 01/06/2022 - 09:27:50: szName: '`баян'
L 01/06/2022 - 09:32:32: szName: '17rus'
L 01/06/2022 - 09:41:30: szName: '17rus'
L 01/06/2022 - 09:43:59: szName: 'kombo'
L 01/06/2022 - 09:54:19: szName: 'SERGHANT'
L 01/06/2022 - 09:58:35: szName: 'kombo'
L 01/06/2022 - 09:58:35: szName: '`баян'
L 01/06/2022 - 09:58:36: szName: 'KOPOHABuPyC'
L 01/06/2022 - 09:58:36: szName: 'SERGHANT'
L 01/06/2022 - 10:03:42: szName: '17rus'
L 01/06/2022 - 10:06:33: szName: 'SERGHANT'

Но флаг n получил только KOPOHABuPyC, а на следующей карте он может и не получить флаг.
Сейчас на сервере:
# nick authid userid и с права
1 toshik VALVE_1:1:71221760 1981 Да Да abcdfijuz
2 KOPOHABuPyC VALVE_1:1:522798447 1951 Да Не anz
3 kombo VALVE_1:1:15025074 1988 Да Да abcdfijuz
4 SAMSUNG VALVE_1:1:941355591 1972 Не Не z
5 WalRuS VALVE_1:1:1457261689 1989 Да Не az
8 `баян VALVE_1:0:450518411 1975 Да Да abcdefghijklopqrstuvz
9 Edinolichnik STEAM_0:0:44745189 1986 Да Не az
Всего 7

Тут мне и не понятно, вроде как работает, но не как надо.
Раньше он работал исправно, но давно.


В логах ошибок упоминания этого плагина нет.
Прикладываю id клиента игроков.
L 01/06/2022 - 08:55:18: Log file started (file "cstrike/addons/amxmodx/logs/GSClient_20220106.log") (game "cstrike") (amx "1.10.0.5461")
L 01/06/2022 - 08:55:18: (`баян) (VALVE_1:0:450518411) (178.162.32.229) | Uniq: (dev-ms.ru) | UID: (b14838a699)
L 01/06/2022 - 09:05:12: (17rus tyva) (VALVE_1:1:1372704533) (94.230.255.209) | Uniq: (dev-ms.ru) | UID: (836c4c05ee)
L 01/06/2022 - 09:11:56: (`баян) (VALVE_1:0:450518411) (178.162.32.229) | Uniq: (dev-ms.ru) | UID: (b14838a699)
L 01/06/2022 - 09:27:51: (`баян) (VALVE_1:0:450518411) (178.162.32.229) | Uniq: (dev-ms.ru) | UID: (b14838a699)
L 01/06/2022 - 09:32:33: (17rus tyva) (VALVE_1:1:1372704533) (94.230.255.209) | Uniq: (dev-ms.ru) | UID: (836c4c05ee)
L 01/06/2022 - 09:35:50: (WalRuS) (VALVE_1:1:1457261689) (217.114.144.92) | Uniq: (dev-ms.ru) | UID: (52548b67dc)
L 01/06/2022 - 09:41:02: (toshik) (VALVE_1:1:71221760) (185.97.201.93) | Uniq: (dev-ms.ru) | UID: (75ade083db)
L 01/06/2022 - 09:41:31: (17rus tyva) (VALVE_1:1:1372704533) (94.230.255.209) | Uniq: (dev-ms.ru) | UID: (836c4c05ee)
L 01/06/2022 - 09:42:07: (Edinolichnik) (STEAM_0:0:44745189) (5.18.185.122) | Uniq: (dev-ms.ru) | UID: (f88d1504d3)
L 01/06/2022 - 09:43:22: (Edinolichnik) (STEAM_0:0:44745189) (5.18.185.122) | Uniq: (dev-ms.ru) | UID: (f88d1504d3)
L 01/06/2022 - 09:44:00: (kombo) (VALVE_1:1:15025074) (5.164.76.177) | Uniq: (dev-ms.ru) | UID: (b2d85ddca4)
L 01/06/2022 - 09:51:19: (WalRuS) (VALVE_1:1:1457261689) (217.114.144.92) | Uniq: (dev-ms.ru) | UID: (52548b67dc)
L 01/06/2022 - 09:54:20: (SERGHANT) (VALVE_1:1:214456834) (178.121.12.60) | Uniq: (dev-ms.ru) | UID: (8237542f92)
L 01/06/2022 - 10:03:43: (17rus tyva) (VALVE_1:1:1372704533) (94.230.255.209) | Uniq: (dev-ms.ru) | UID: (836c4c05ee)
L 01/06/2022 - 10:06:34: (SERGHANT) (VALVE_1:1:214456834) (178.121.12.60) | Uniq: (dev-ms.ru) | UID: (8237542f92)
L 01/06/2022 - 10:18:40: (kombo) (VALVE_1:1:15025074) (5.164.76.177) | Uniq: (dev-ms.ru) | UID: (b2d85ddca4)
L 01/06/2022 - 10:26:55: (`баян) (VALVE_1:0:450518411) (178.162.32.229) | Uniq: (dev-ms.ru) | UID: (b14838a699)
L 01/06/2022 - 10:26:59: (17rus tyva) (VALVE_1:1:1372704533) (94.230.255.209) | Uniq: (dev-ms.ru) | UID: (836c4c05ee)
L 01/06/2022 - 10:27:31: (KOPOHABuPyC) (VALVE_1:1:522798447) (78.85.161.252) | Uniq: (dev-ms.ru) | UID: (5dfa0463ad)

Можете подсказать что происходит?
 
В этой теме было размещено решение! Перейти к решению.

Download all Attachments

Последнее редактирование:
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
polki, в последнее время есть проблема с модулем. Думаю, проблема в проверке is_user_authemu
 
Сообщения
59
Реакции
10
C++:
#include <amxmodx>


new const PLUGIN[] = "DevMs ForkFlag";
new const VERSION[] = "1.0";
new const AUTHOR[] = "gyxoBka";

new const g_szFlags[] = "n";

new g_iFlags;

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR);
   
    register_srvcmd("rc_fork_detect", "cmdForkDetect");
   
    g_iFlags = read_flags(g_szFlags);
}

public cmdForkDetect()
{
    new szName[32], iPlayer;
   
    read_argv(1, szName, charsmax(szName));
    log_to_file("log.txt", "szName: '%s'", szName);
   
    iPlayer = get_user_index(szName);
   
    if(iPlayer > 0)
        set_user_flags(iPlayer, g_iFlags);
   
    return PLUGIN_HANDLED
}
Как я понял, убрал проверку на использование GSClient.
 
Последнее редактирование:

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

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