Duplicate spec bots names. But the hp_vi.sma has 2 different names. When join in server its same.

Сообщения
110
Реакции
6
Помог
2 раз(а)
Ошибка
Duplicate spec bots names. But the hp_vi.sma has 2 different names. When join in server its same.
ОС
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.13.0.791-dev
Build date: 23:57:15 Aug 31 2023 (3428)
Build from: https://github.com/Giferns/rehlds/commit/10a5066
ReGamedll
ReGameDLL version: 5.22.0.593-dev
Build date: 03:10:30 Jul 11 2023
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/e1d1c11
Версия 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.2 Beta 3 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.137 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 5] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 6] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5461 ini Start ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 8] MySQL RUN - mysql_amxx_i386.so v1.10.0.5461 pl6 ANY ANY
[ 9] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5467 pl6 ANY ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5461 pl6 ANY ANY
[11] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5461 pl6 ANY ANY
[12] CSX RUN - csx_amxx_i386.so v1.10.0.5467 pl6 ANY ANY
X[13] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl6 ANY Never [14] Fun RUN - fun_amxx_i386.so v1.10.0.5461 pl6 ANY ANY
[15] Engine RUN - engine_amxx_i386.so v1.10.0.5447 pl6 ANY ANY
[16] ReAPI RUN - reapi_amxx_i386.so v5.21.0.252-dev pl6 ANY Never
16 plugins, 16 running
Список плагинов
[  1] 0   mdbBans                 4.8         Desikac           unknown                          mdbBansEN.a  running  
[ 2] 1 Admin Base 1.10.0.546 AMXX Dev Team admin.amxx running
[ 3] 2 CVAR Hostname Blocker 1.0 unknown block_hostn running
[ 4] 3 Admin Commands 1.10.0.546 AMXX Dev Team admincmd.am running
[ 5] 4 Admin Help 1.10.0.546 AMXX Dev Team adminhelp.a running
[ 6] 5 Multi-Lingual System 1.10.0.546 AMXX Dev Team multilingua running
[ 7] 6 Menus Front-End 1.10.0.546 AMXX Dev Team menufront.a running
[ 8] 7 Commands Menu 1.10.0.546 AMXX Dev Team cmdmenu.amx running
[ 9] 8 Players Menu 1.10.0.546 AMXX Dev Team plmenu.amxx running
X[ 10] 9 Maps Menu 1.10.0.546 AMXX Dev Team mapsmenu.am running [ 11] 10 Restrict Weapons 1.10.0.546 AMXX Dev Team restmenu.am running
[ 12] 11 NoMoreSh!t 3.2 SpeeDeeR@amxmodx nms.amxx running
[ 13] 12 Admin Chat 1.10.0.546 AMXX Dev Team adminchat.a running
[ 14] 13 Anti Flood 1.10.0.546 AMXX Dev Team antiflood.a running
[ 15] 14 Scrolling Message 1.10.0.546 AMXX Dev Team scrollmsg.a running
[ 16] 15 Info. Messages 1.10.0.546 AMXX Dev Team imessage.am running
[ 17] 16 Admin Votes 1.10.0.546 AMXX Dev Team adminvote.a running
[ 18] 17 Stats Configuration 1.10.0.546 AMXX Dev Team statscfg.am running
[ 19] 18 StatsX 1.10.0.546 AMXX Dev Team statsx.amxx running
[ 20] 19 CS Misc. Stats 1.10.0.540 AMXX Dev Team miscstats.a running
X[ 21] 20 ReAimDetector API 0.2.2 ReHLDS Team unknown reaimdetect running [ 22] 21 Chat Manager 4.8 OciXCrom crx_chatman running
[ 23] 22 CM: Toggle Chat 4.1 OciXCrom crx_chatman running
[ 24] 23 OciXCrom's Rank System 3.10 OciXCrom crx_ranksys running
[ 25] 24 Autoresponder/Advertis 0.5 MaximusBrood unknown ad_manager. running
[ 26] 25 Fast Knife 1.0.1 OciXCrom crx_fast_kn running
[ 27] 26 Advanced Spam Nick Cha 1.0 Fullserver advanced_sp running
[ 28] 27 CS Revo: Objetivo ou K 1.0 Wilian M. unknown csr_objetiv running
[ 29] 28 CS Revo: Fast Sniper 1.0 Wilian M. csrevo_fast running
[ 30] 29 Enhanced Parachute Lit 0.2 lonewolf EnhancedPar running
[ 31] 30 CS Revo: Advanced Kill 0.9 Spection csr_kill_as running
X[ 32] 31 CS AFK Manager 1.0.6 (amx Freeman afk_manager running [ 33] 32 [ReApi] Killer ScreenF 0.0.4 Vaqtincha unknown reapi_kille running
[ 34] 33 VIP Eng Version 3.0 Dunno VIP.amxx running
[ 35] 34 AMXX Gag 1.5.0 xPaw & Exolent amx_gag.amx running
[ 36] 35 Enhanced FlashBang Rea 0.1 lonewolf ReEnhancedF running
[ 37] 36 Ping Faker 1.0 Hattrick unknown pingfaker2. running
[ 38] 37 [ReAPI] Block 'Fire in 0.0.1 sergrib reapi_block running
[ 39] 38 Simple Reset Score 1.0 PG unknown resetscore. running
[ 40] 39 unknown unknown unknown unknown hp_vi.amxx running
[ 41] 40 No Name Change 2.1 OciXCrom crx_nonamec running
41 plugins, 41 running
Автор плагина
N/A
Версия плагина
N/A
Исходный код
#include amxmodx
#include fakemeta

#define BOTS_NUM 2

new const g_Names[BOTS_NUM][]= {
"IP: Add IP to Favourites",
"Chat: discord.gg/GmcD8dxxWc"
};

new g_Query[256];

public plugin_init() {
set_task(15.0, "TaskManageBots", .flags="b");
}
new g_Bot[33], g_BotsCount;

public TaskManageBots() {
static PlayersNum; PlayersNum = get_playersnum(1);
if(PlayersNum < get_maxplayers() - 1 && g_BotsCount < BOTS_NUM) {
CreateBot();
}
if(PlayersNum > get_maxplayers() - 1 && g_BotsCount) {
RemoveBot();
}
}

public client_disconnected(i) {
if(g_Bot[i]) {
g_Bot[i] = 0, g_BotsCount -- ;
}
}

RemoveBot() {
static i;
for(i = 1; i <= get_maxplayers(); i++) {
if(g_Bot[i]) {
server_cmd("kick #%d", get_user_userid(i));break;
}
}
}

CreateBot() {
static Bot;
format(g_Query, 255, "%s",g_Names[g_BotsCount]);Bot = engfunc(EngFunc_CreateFakeClient, g_Query);
if(Bot > 0 &&pev_valid(Bot)) {
engfunc(EngFunc_FreeEntPrivateData, Bot)
set_pev(Bot, pev_flags, pev(Bot, pev_flags) | FL_FAKECLIENT)
dllfunc(DLLFunc_ClientPutInServer, Bot)
g_Bot[Bot]=1;
g_BotsCount++;
}
}
Duplicate spec bots names. using hp_vi.amxx plugin

Help to modify plugin to no duplicates and make just same that file hp_vi.sma has.

20230906170233_1.jpg
 
Сообщения
40
Реакции
12
Помог
1 раз(а)
You could disable all plugins and then enable it one by one, while there is issue
 
Сообщения
20
Реакции
11
dont try to kick bots manualy with this update >> broken logic
 

Вложения

Сообщения
201
Реакции
20
Помог
5 раз(а)
Xbass13 ничего не изменилось, это тот же код, что и egcmasti
 

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

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