Custom Player Models 0.2.0

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
169
Реакции
51
Помог
6 раз(а)
Ошибка
[ReAPI] rh_update_user_info: player 3 is not connected
[AMXX] Run time error 10 (plugin "custom_player_models_api.amxx") (native "rh_update_user_info") - debug not enabled!
[AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Unhandled dynamic native error
[AMXX] Run time error 10 (plugin "custom_player_models_toggle.amxx") (native "custom_player_models_enable") - debug not enabled!
[AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
ОС
Linux
Amx Mod X
1.9.0.5263
Билд
3.7.0.695-dev
ReGamedll
5.15.0.457-dev
Версия Metamod
1.21p37
Список метамодулей
description      stat pend  file              vers      src   load  unlod
[ 1] SafeNameAndChat RUN - SafeNameAndChat. v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386. v0.1.0.1 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i v0.1.6 ini Start Never
[ 4] Revoice RUN - revoice_mm_i386. v0.1.0.3 ini Start Never
[ 5] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 6] Rechecker RUN - rechecker_mm_i38 v2.5 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i38 v1.5.696 ini Chlvl ANY
[ 8] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 9] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl5 ANY ANY
[10] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl5 ANY ANY
[11] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl5 ANY ANY
[12] SQLite RUN - sqlite_amxx_i386 v1.9.0.5 pl5 ANY ANY
[13] Engine RUN - engine_amxx_i386 v1.9.0.5 pl5 ANY ANY
[14] ReAPI RUN - reapi_amxx_i386. v5.12.0. pl5 ANY Never
[15] ReAimDetector RUN - reaimdetector_am v0.2.2 pl5 ANY Never
[16] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl5 ANY ANY
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl5 ANY ANY
[18] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl5 ANY ANY
18 plugins, 18 running
Список плагинов
name                    version     author            file             status   
[ 1] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 2] FreshBans 1.4.0b kanagava fresh_bans_140_ running
[ 3] admin_loader 0.3.7 kanagava admin_loader_fo running
[ 4] WebHS 0.1 kanagava fb_web_online.a running
[ 5] fb_forwards 0.1.8 Mazdan & Neugomo fb_forwards.amx running
[ 6] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 7] AMXX reloadadmins 0.1 9 rpamm!? reloadadmins.am running
[ 8] Ultimate Chats Control 5.2(c) neygomon ucc.amxx running
[ 9] UCC Addon: VoteGAG 1.2 neygomon ucc_votegag.amx running
[ 10] Admin Commands 1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 11] Players Menu 1.7 neugomon players_menu.am running
[ 12] New Kick Menu 1.4.2 Radius newkickmenu.amx running
[ 13] Menus Front-End 1.5 neugomon menufront_end.a running
[ 14] Admin Chat 1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 15] Maps Menu 1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 16] Items Restrict 1.1 s1lent items_restrict. running
[ 17] Admin Votes 1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 18] c4 timer 1.1 cheap_suit c4timer.amxx running
[ 19] Stats Configuration 1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 20] Say Me & Hp 1.0 Hypa_[KZ] say_me_and_hp.a running
[ 21] CS Misc. Stats 1.9.0.5241 AMXX Dev Team miscstats.amxx running
[ 22] Welcom 1.0 4el welcome_music.a running
[ 23] DemoRecoder 1.2 neygomon demorecoder.amx running
[ 24] MenuGen 1.0 CrAsH MenuGen.amxx running
[ 25] V.I.P Custom Weapons 1.0.0 Vaqtincha vip_custom.amxx running
[ 26] Mode 2x2 2.5_reapi s1lent mode.amxx running
[ 27] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 28] Log Connect 1.0 Leo_[BH] log_connect.amx running
[ 29] Admin Commands Log 1.2 w0w admin_commands_ running
[ 30] Screen_Fade 0.0.5 Vaqtincha screen_fade.amx running
[ 31] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 32] Ping Control 0.3 neygomon ping_control.am running
[ 33] ResetScore & GameName 1.0 Phantom rs_and_game_nam running
[ 34] Top Awards 0.11chat Safety1st top_awards.amxx running
[ 35] Info Rank 0.2 maFFyoZZyk info_rank.amxx running
[ 36] Parachute 1.1 ReHLDS Team parachute.amxx running
[ 37] Spect Bot 1.4 Jack Daniel`s spect_bot.amxx running
[ 38] RC BaseChanger 1.0 AMXX rc_basechanger. running
[ 39] ReChecker Logging 1.0 AMXX rc_logging.amxx running
[ 40] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 41] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 42] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 43] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 44] Advert Messages 1.2.2 neygomon adverts.amxx running
[ 45] HUD_Adverts_Deads 1.3.1 pUzzlik hud_message_dea running
[ 46] Anti Reklama 1.1 MarcaD anti_reklama.am running
[ 47] Block Advert 1.4 neygomon block_advert.am running
[ 48] [ReAPI] No Team Flash 0.0.2 Vaqtincha noteamflash_lit running
[ 49] [ReAPI] Colored Flash 1.0 ReHLDS Team colored_flash.a running
[ 50] [ReAPI] Random Weapons 2.4.9 neugomon/h1k3 random_weapons_ running
[ 51] [ReAPI] Best player of 1.1.2 F@nt0M best_player_of_ running
[ 52] Fake Ping 1.1 MeRcyLeZZ/gyxoBk FakePing.amxx running
[ 53] unknown unknown unknown 51round_restart running
[ 54] Block grande info 1.0 neygomon BlockGrenadeInf running
[ 55] Ultimate Gore 1.6 JTP10181 amx_gore_ultima running
[ 56] [ReAPI] AWPoff 1.4.3 PAffAEJIkA :3 awp_limit.amxx running
[ 57] cfg_hse 1.0 mut2nt cfg_hse.amxx running
[ 58] Free VIP 0.1 XTCS free_vip.amxx running
[ 59] KiLL Assist poka_4to_b PRoSToTeM@ Kill_assist_rea running
[ 60] unknown unknown unknown money_kill_knif running
[ 61] [ReAMX] SlayLosers RBS 18.10.13 SKAJIbnEJIb & d3 slaylosers_rbs. running
[ 62] Spec Money Save 0.2 F@nt0M spec_money_save running
[ 63] Time for info 1.0 neugomon time_for_info.a running
[ 64] [ReAPI] Advanced Team 0.1.0 Vaqtincha AdvancedTeamCho running
[ 65] [DD] Quick defuse 1.1 Deadly|Darkness dd_qdefuse.amxx running
[ 66] C4 Sprites Timer 0.1.0 ConnorMcLeod c4_timer_spr.am running
[ 67] Style C4 Timer 2.0 OciXCrom crx_c4timer.amx running
[ 68] Hud Info 2.1 ill/Jack Daniel` hud_info.amxx running
[ 69] Save score & money 1.2.4 Minni Mouse Save_Score_and_ running
[ 70] Kills Counter 0.3 serfreeman1337 kills_counter.a running
[ 71] SpecList 1.2a FatalisDK speclist_rus.am running
[ 72] Chat Manager 1.1.2-16 Mistrick chatmanager.amx running
[ 73] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_add running
[ 74] Map Spawns Editor 1.0.16 iG_os map_spawns_edit running
[ 75] FPS Meter 1.1 neygomon fps.amxx running
[ 76] In-Game Ads(MastaMan E 1.83 (Edit stupok in_game_ads_Mas running
[ 77] InfoConnects 1.0 PAffAEJIkA :3 infoconnects.am running
[ 78] Custom Player Models A 0.2.0 F@nt0M custom_player_m running
[ 79] Custom Player Models C 0.2.0 BlackSignature custom_player_m running
[ 80] Custom Player Models T 0.2.0 BlackSignature custom_player_m running
[ 81] V.I.P Custom KNIFE 1.0.0 Vaqtincha custom_knife.am running
[ 82] V.I.P Custom DEAGLE 1.0.0 Vaqtincha custom_deagle.a running
[ 83] V.I.P Custom M4A1 1.0.0 Vaqtincha custom_m4a1.amx running
[ 84] V.I.P Custom AK-47 1.0.0 Vaqtincha custom_ak47.amx running
[ 85] V.I.P Custom AWP 1.0.0 Vaqtincha custom_awp.amxx running
85 plugins, 85 running
Автор плагина
fantom BlackSignature
Версия плагина
0.2.0
Исходный код
#include <amxmodx>
#include <nvault>
#include <time>
#include "include/custom_player_models.inc"

#define MAX_AUTHID_LENGTH 64

new const CLCMDS[][] = {
"say /models",
"say_team /models"
};

#define PRUNE_DAYS 30

#define VAULT_NAME "custom_player_models"

new g_Vault = INVALID_HANDLE;

public plugin_init() {
register_plugin("Custom Player Models Toggle", "0.2.0", "BlackSignature");
register_dictionary("cpm_toggle.txt");

for(new i; i < sizeof(CLCMDS); i++) {
register_clcmd(CLCMDS[i], "ClCmd_Toggle");
}
}

public plugin_cfg() {
g_Vault = nvault_open(VAULT_NAME);

if(g_Vault != INVALID_HANDLE) {
nvault_prune(g_Vault, 0, get_systime() - (PRUNE_DAYS * SECONDS_IN_DAY));
}
}

public client_authorized(id, const authid[]) {
if(is_user_connected(id)) {
load_player(id, authid);
}
}

public client_putinserver(id) {
new authid[MAX_AUTHID_LENGTH];

if(get_user_authid(id, authid, charsmax(authid))) {
load_player(id, authid);
}
}

load_player(id, const authid[]) {
if (is_user_bot(id) || is_user_hltv(id)) {
return;
}
if(g_Vault != INVALID_HANDLE && nvault_get(g_Vault, authid)) {
custom_player_models_enable(id, false);
nvault_touch(g_Vault, authid);
} else {
custom_player_models_enable(id, true);
}
}

public ClCmd_Toggle(id) {
new bool:bEnabled = custom_player_models_is_enable(id);
custom_player_models_enable(id, !bEnabled);

client_print_color(id, print_team_red, "%L", id, bEnabled ? "CPM__TOGGLE_OFF" : "CPM__TOGGLE_ON");

if(g_Vault == INVALID_HANDLE) {
return PLUGIN_HANDLED;
}

new authid[MAX_AUTHID_LENGTH];
get_user_authid(id, authid, charsmax(authid));

if(bEnabled) {
nvault_set(g_Vault, authid, "1");
} else {
nvault_remove(g_Vault, authid);
}

return PLUGIN_HANDLED;
}

public plugin_end() {
if(g_Vault != INVALID_HANDLE) {
nvault_close(g_Vault);
}
}
Собственно говоря установил данный плагин Custom Player Models 0.2.0 - https://dev-cs.ru/resources/928/ а он сыпет ошибки в лог
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
510
Реакции
111
Помог
16 раз(а)
D1esel,

Код:
To enable debug mode, add "debug" after the plugin name in plugins.ini
 
Сообщения
169
Реакции
51
Помог
6 раз(а)
r1nk0,
Код:
[ReAPI] rh_update_user_info: player 11 is not connected
[AMXX] Displaying debug trace (plugin "custom_player_models_api.amxx", version "0.2.0")
[AMXX] Run time error 10: native error (native "rh_update_user_info")
[AMXX]    [0] custom_player_models_api.sma::NativeEnable (line 345)
Unhandled dynamic native error
[AMXX] Displaying debug trace (plugin "custom_player_models_toggle.amxx", version "0.2.0")
[AMXX] Run time error 10: native error (native "custom_player_models_enable")
[AMXX]    [0] custom_player_models_toggle.sma::load_player (line 58)
[AMXX]    [1] custom_player_models_toggle.sma::client_putinserver (line 46)
 
Сообщения
1,293
Реакции
2,294
Помог
57 раз(а)
D1esel, посмотрю как появится время. сейчас нет возможности отладить
 
Сообщения
169
Реакции
51
Помог
6 раз(а)
BlackSignature, спасибо!
Обратил внимание пока отлавливал debug, что ошибка возникает при большом количестве игроков (от 27)
 
Сообщения
1,293
Реакции
2,294
Помог
57 раз(а)
D1esel,
ботов нет на сервере случаем?
команды от плагина не вынесены в какое-то меню на сервере (в особенности, на которое форсится автобинд) ?
 
Сообщения
169
Реакции
51
Помог
6 раз(а)
BlackSignature, есть "бот-реклама" в спектрах - выходит когда сервер заполнен
Код:
Spect Bot               1.4         Jack Daniel`s
команды от плагина не вынесены в какое-то меню на сервере
для данного плагина еще не выносил, для других вынесены
 
Сообщения
1,293
Реакции
2,294
Помог
57 раз(а)
D1esel, да. говорю же, у меня нет сейчас времени. если надо срочно, то в заказы, кто-нить разберётся и доделает. я подозреваю, что в боте как раз дело (можно выявить отключением)
 
Статус
В этой теме нельзя размещать новые ответы.

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

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