Не работают модельки для игроков

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
50
Реакции
1
Помог
1 раз(а)
Ошибка
[ReAPI] ReHlds: isn't available
[AMXX] Displaying debug trace (plugin "custom_player_models_api.amxx", version "0.2.4")
[AMXX] Run time error 10: native error (native "rh_update_user_info")
[AMXX] [0] custom_player_models_api.sma::NativeSet (line 299)
Unhandled dynamic native error
[AMXX] Displaying debug trace (plugin "custom_player_models_cfg.amxx", version "0.2.2")
[AMXX] Run time error 10: native error (native "custom_player_models_set")
[AMXX] [0] custom_player_models_cfg.sma::load_player (line 176)
[AMXX] [1] custom_player_models_cfg.sma::set_load_player (line 121)
[AMXX] [2] custom_player_models_cfg.sma::CBasePlayer_GetIntoGame_Post (line 105)
Could not establish connection to Steam servers.
[ReAPI] ReHlds: isn't available
[AMXX] Displaying debug trace (plugin "custom_player_models_api.amxx", version "0.2.4")
[AMXX] Run time error 10: native error (native "rh_update_user_info")
[AMXX] [0] custom_player_models_api.sma::NativeEnable (line 375)
Unhandled dynamic native error
[AMXX] Displaying debug trace (plugin "custom_player_models_toggle.amxx", version "0.2.1")
[AMXX] Run time error 10: native error (native "custom_player_models_enable")
[AMXX] [0] custom_player_models_toggle.sma::ClCmd_Toggle (line 78)
[ReAPI] ReHlds: isn't available
[AMXX] Displaying debug trace (plugin "custom_player_models_api.amxx", version "0.2.4")
[AMXX] Run time error 10: native error (native "rh_update_user_info")
[AMXX] [0] custom_player_models_api.sma::NativeEnable (line 375)
Unhandled dynamic native error
[AMXX] Displaying debug trace (plugin "custom_player_models_toggle.amxx", version "0.2.1")
[AMXX] Run time error 10: native error (native "custom_player_models_enable")
[AMXX] [0] custom_player_models_toggle.sma::ClCmd_Toggle (line 78)
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5294
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 13:12:29 Aug 29 2013 (6153)
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 v1.21p37 2013/05/30 (5:13)
by Will Day
http://www.metamod.org/
Patch: Metamod-P (mm-p) v37
by Jussi Kivilinna
http://metamod-p.sourceforge.net/
compiled: May 30 2013, 11:41:16 EET (optimized)
Список метамодулей
[ 1] dproto_EF RUN - dproto_i386.so v0.9.497 ini Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 3] VoiceTranscoder RUN - vtc.so v80 ini ANY ANY
[ 4] ReSemiclip fail load resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 5]
[ 6] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl2 ANY ANY
[ 7] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl2 ANY ANY
[ 8] ReAPI RUN - reapi_amxx_i386. v5.22.0. pl2 ANY Never
[ 9] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl2 ANY ANY
[10] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl2 ANY ANY
[11] Engine RUN - engine_amxx_i386 v1.9.0.5 pl2 ANY ANY
[12] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl2 ANY ANY
[13] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl2 ANY ANY
13 plugins, 11 running
Список плагинов
[  1] FreshBans               1.4.8b      kanagava          fresh_bans_148-  running  
[ 2] Admin Loader 3.5 neygomon admin_loader.am running
[ 3] Admin Base 1.9.0.5294 AMXX Dev Team admin.amxx running
[ 4] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 5] Admin Help 1.9.0.5294 AMXX Dev Team adminhelp.amxx running
[ 6] Slots Reservation 1.9.0.5294 AMXX Dev Team adminslots.amxx running
[ 7] Multi-Lingual System 1.9.0.5294 AMXX Dev Team multilingual.am running
[ 8] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 10] Teleport Menu 1.9.0.5294 AMXX Dev Team telemenu.amxx running
[ 11] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx running
[ 12] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 13] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 14] Anti Flood 1.9.0.5294 AMXX Dev Team antiflood.amxx running
[ 15] Scrolling Message 1.9.0.5294 AMXX Dev Team scrollmsg.amxx running
[ 16] Info. Messages 1.9.0.5294 AMXX Dev Team imessage.amxx running
[ 17] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 18] NextMap 1.9.0.5294 AMXX Dev Team nextmap.amxx stopped
[ 19] Nextmap Chooser 1.9.0.5294 AMXX Dev Team mapchooser.amxx stopped
[ 20] TimeLeft 1.9.0.5294 AMXX Dev Team timeleft.amxx running
[ 21] Pause Plugins 1.9.0.5294 AMXX Dev Team pausecfg.amxx running
[ 22] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 23] StatsX 1.8.1.3746 AMXX Dev Team statsx.amxx running
[ 24] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 25] CSXSQL: Onlinetime Awa 0.2 serfreeman1337 csstatsx_playti running
[ 26] AMX Mute 1.1 Nomad mute.amxx running
[ 27] Team Semiclip 2.0.0 schmurgel1983 cs_team_semicli running
[ 28] Info Rank 0.1 by CepeH9 INFO_RANK_V0.1. running
[ 29] DHud Win Status 1.0.2 BiZaJe DhudWinStatus.a running
[ 30] Knife kill 1.0.1 MurLemur knife_kill_soun running
[ 31] [Customizable] AmxModM 0.0.5 Albertio amxmodmenu.amxx running
[ 32] Weapon Icon 1.2 hoboman313/Zenix weapon_icon.amx running
[ 33] Back Weapons 1.1 Cheap_Suit backweapons.amx running
[ 34] First Person Death 1.0 Numb first_person_de running
[ 35] Kills Counter 1.0 Safety1st killscounter.am running
[ 36] GameName 1.0 Lonkura GameName.amxx running
[ 37] Info After Death 0.0.3 Albertio info_after_deat running
[ 38] Parachute for ALL [ReA 3.0 Leo_[BH] parachute_for_a running
[ 39] Killa HP 1.0 jas0n killa_hp.amxx running
[ 40] Team Flash Control 1.1 Tender Team_Flash_Cont running
[ 41] C4 CD Voice 1.1 TTuCTOH c4cdvoice.amxx running
[ 42] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 43] online_play 1 A1v anew.amxx running
[ 44] IDEAL VIP 3 c xepoM] 15% oT Ba/lePa ideal_vip_gold. running
[ 45] Custom Smoke 1.07 bionext custom_smoke.am running
[ 46] Mode 2x2 1.9 s1lent mode.amxx running
[ 47] [ReAPI] Healthnade 0.0.11f DEV-CS.RU Commun reapi_healthnad running
[ 48] Join/Leave Message 1.2 BigBaller WhoVistServer.a running
[ 49] Grenade Trail 1.0 Jim grenade_trail.a running
[ 50] CSNadeDrops 0.14 Avalanche csnadedrops.amx running
[ 51] Reset_Score 1.0 9 rpamm!? Resetscore.amxx running
[ 52] Models Replacement 0.0.2 ConnorMcLeod | V models_replacem running
[ 53] Damager 2.0 Prayer damager.amxx running
[ 54] Crux Ansata 1.0 DUKKHAZ0R crux_ansata.amx running
[ 55] [GM] VIP Test 1.2.0 [GM] NWC gm_vip_test.amx running
[ 56] Auto-Give Privileges 1.0 SerGrib night_vips.amxx stopped
[ 57] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 58] Refill Weapon On Kill 0.0.1 Vaqtincha refill_weapon_o running
[ 59] Top Round Damage 1.0.4 ReAP Dager* *.* -G- top_round_damag running
[ 60] Block Unknown Command Alpha WPMG PRoSToTeM@ BlockUnknownCom running
[ 61] Lite Translit 2.8 neygomon lite_translit_s running
[ 62] unknown unknown unknown stats.amxx bad load
[ 63] Admin Spectator ESP 1.3 KoST admin_spec_esp. running
[ 64] Team Balance Control 1.3.9 gyxoBka TeamBalanceCont running
[ 65] Map Manager 2.5.61 Mistrick mapmanager.amxx running
[ 66] Map Manager: Sub Plugi 0.1 Mistrick mapmanager_subp running
[ 67] Custom Player Models T 0.2.1 BlackSignature custom_player_m debug
[ 68] Custom Player Models C 0.2.2 BlackSignature custom_player_m debug
[ 69] Custom Player Models A 0.2.4 F@nt0M & BlackSi custom_player_m debug
[ 70] Weather System 2.9c UFPS.Team sneg.amxx running
[ 71] SnowMan 1.0 OverGame snow_man.amxx running
[ 72] Christmas_C4 1.0 MANCHIMOCYRUS Christmas_C4.am running
[ 73] unknown unknown unknown ak47_VIP_F.amxx running
[ 74] unknown unknown unknown m4a1_VIP_F.amxx running
[ 75] unknown unknown unknown m4a1_premium.am running
[ 76] unknown unknown unknown ak47_premium.am running
[ 77] ServerMenu 1.0 Fl1pping menu.amxx running
[ 78] PremMenu 1.0 Fl1pping premmenu.amxx running
[ 79] Privilegii 1.0 Fl1pping privmenu.amxx running
[ 80] Gl.AdminMenu 1.0 Fl1pping gladmin.amxx running
[ 81] VIPFMENU 1.0 Fl1pping vipfmenu.amxx running
[ 82] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 83] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 84] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 85] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 86] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 87] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
Автор плагина
fantom , BlackSignature
Версия плагина
0.2.4
Исходный код
#include <amxmodx>
#include <reapi>
#include "include/custom_player_models.inc"

// Steam (flag '@') support, comment if you run steam-only server
#define STEAM_SUPPORT

// Config filename in 'amxmodx/configs'
#define CONFIG_FILENAME "custom_player_models.ini"
//#define CONFIG_FILENAME "custom_player_models/models.ini"

//#define DEBUG

#define MAX_AUTHID_LENGTH 64

enum _:access_s {
ACCESS_AUTH[MAX_AUTHID_LENGTH],
ACCESS_KEY[CPM_MAX_MODEL_LENGTH]
};

new Array:g_Models = Invalid_Array, g_Size;

public plugin_init() {
register_plugin("Custom Player Models CFG", "0.2.2", "BlackSignature");

RegisterHookChain(RG_CBasePlayer_GetIntoGame, "CBasePlayer_GetIntoGame_Post", true);
RegisterHookChain(RG_CBasePlayer_SetClientUserInfoName, "CBasePlayer_SetClientUserInfoName_Post", true);

#if defined DEBUG
register_clcmd("radio2", "CmdRadio2");
register_clcmd("radio3", "CmdRadio3");
#endif
}

public custom_player_models_init() {
new path[128];
new len = get_localinfo("amxx_configsdir", path, charsmax(path));
formatex(path[len], charsmax(path) - len, "/%s", CONFIG_FILENAME);
new file = fopen(path, "rt");
if (!file) {
set_fail_state("Can't %s '%s'", file_exists(path) ? "read" : "find", path);
return;
}

g_Models = ArrayCreate(access_s);

new line[256], data[access_s], model_tt[64], body_tt[6], model_ct[64], body_ct[6], time[32];

new systime = get_systime();

while (!feof(file)) {
fgets(file, line, charsmax(line));
if (line[0] == EOS || line[0] == ';') {
continue;
}

if (parse(line,
data[ACCESS_AUTH], charsmax(data[ACCESS_AUTH]),
data[ACCESS_KEY], charsmax(data[ACCESS_KEY]),
model_tt, charsmax(model_tt),
body_tt, charsmax(body_tt),
model_ct, charsmax(model_ct),
body_ct, charsmax(body_ct),
time, charsmax(time)
) != 7) {
continue;
}

custom_player_models_register(data[ACCESS_KEY], model_tt, str_to_num(body_tt), model_ct, str_to_num(body_ct));

if(data[ACCESS_AUTH][0] == EOS) {
continue;
}

#if !defined STEAM_SUPPORT
if(data[ACCESS_AUTH][0] == '@') {
continue;
}
#endif

if(time[0] && systime >= parse_time(time, "%d.%m.%Y %H:%M")) {
continue
}

ArrayPushArray(g_Models, data);
}

fclose(file);

g_Size = ArraySize(g_Models);
}

public CBasePlayer_GetIntoGame_Post(const id) {
if(is_user_hltv(id)) {
return;
}

// for client_putinserver()
// redundant here? not sure about it
if(is_user_bot(id) && !is_entity(id)) {
RequestFrame("fix_bot", get_user_userid(id));
return;
}

set_load_player(id);
}

public CBasePlayer_SetClientUserInfoName_Post(const id, const infobuffer[], const new_name[]) {
RequestFrame("name_delay", id);
}

public name_delay(const id) {
if(is_user_alive(id) && is_entity(id)) { // is_entity() as botfix, can be redundant
set_load_player(id);
}
}

set_load_player(const id) {
new authid[MAX_AUTHID_LENGTH];
if(get_user_authid(id, authid, charsmax(authid))) {
load_player(id, authid);
}
}

public fix_bot(const userid) {
new id = find_player("k", userid);

if(id) {
load_player(id, "BOT");
}
}

load_player(id, const authid[]) {
new i, data[access_s], player_flags = get_user_flags(id);

new szName[MAX_NAME_LENGTH];
get_user_name(id, szName, charsmax(szName));

for( ; i < g_Size; i++) {
ArrayGetArray(g_Models, i, data);

switch(data[ACCESS_AUTH][0]) {
case '*': {
break;
}
#if defined STEAM_SUPPORT
case '@': {
if(is_user_steam(id)) {
break;
}
#endif
}
case 'S', 'V': {
if(strcmp(authid, data[ACCESS_AUTH], .ignorecase = true) == 0) {
break;
}
}
case '#': {
if(strcmp(szName, data[ACCESS_AUTH][1], .ignorecase = true) == 0) {
break;
}
}
default: {
if(player_flags & read_flags(data[ACCESS_AUTH])) {
break;
}
}
}
}

new szKey[CPM_MAX_MODEL_LENGTH];
new bool:bHas = custom_player_models_has(id, szKey, charsmax(szKey));

if(i != g_Size) {
if(!bHas || strcmp(szKey, data[ACCESS_KEY], .ignorecase = false) != 0) {
custom_player_models_set(id, data[ACCESS_KEY]);
}
} else if(bHas) {
custom_player_models_reset(id);
}
}

public plugin_end() {
if(g_Models != Invalid_Array) {
ArrayDestroy(g_Models);
}
}

#if defined DEBUG
public CmdRadio2(const id) {
if (custom_player_models_is_enable(id)) {
client_print_color(id, print_team_grey, "^4Models ^3disabled");
custom_player_models_enable(id, false);
} else {
client_print_color(id, print_team_blue, "^4Models ^3enabled");
custom_player_models_enable(id, true);
}
return PLUGIN_HANDLED;
}

public CmdRadio3(const id) {
new player;
get_user_aiming(id, player);
if (!is_user_connected(player)) {
client_print_color(id, print_team_red, "^3Player not found");
return PLUGIN_HANDLED;
}

if (custom_player_models_has(player)) {
client_print_color(id, print_team_grey, "^4Model ^3reseted");
custom_player_models_reset(player);
} else {
new data[access_s];
ArrayGetArray(g_Models, random_num(0, g_Size - 1), data);
custom_player_models_set(player, data[ACCESS_KEY]);
client_print_color(id, print_team_blue, "^4Model ^3setted ^4[%s]", data[ACCESS_KEY]);
}
return PLUGIN_HANDLED;
}
#endif
Установил последнюю версию, выходит ошибка в консоль. Моделей на сервере, конечно же, нет. Хотя модельки прогрузились на сервер.
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
845
Реакции
521
Помог
13 раз(а)
[ReAPI] ReHlds: isn't available
 
Сообщения
50
Реакции
1
Помог
1 раз(а)
BalbuR, У меня плагины так же останутся работать?
 
Сообщения
50
Реакции
1
Помог
1 раз(а)
@BalbuR,Хорошо. Сейчас попробую
11 Дек 2023
Спасибо большое! Всё сработало!!!

Можно закрыть тему
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.

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

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