- Ошибка
-
L 05/18/2022 - 00:42:49: [ReAPI] Reunion: isn't available
L 05/18/2022 - 00:42:49: [AMXX] Displaying debug trace (plugin "custom_player_models_cfg.amxx", version "0.2.2")
L 05/18/2022 - 00:42:49: Ошибка плагина 10: native error (native "REU_GetAuthtype")
L 05/18/2022 - 00:42:49: [AMXX] [0] custom_player_models_cfg.sma::load_player (line 148)
L 05/18/2022 - 00:42:49: [AMXX] [1] custom_player_models_cfg.sma::set_load_player (line 121)
L 05/18/2022 - 00:42:49: [AMXX] [2] custom_player_models_cfg.sma::CBasePlayer_GetIntoGame_Post (line 105)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0-dev+5210
- Билд
-
ReHLDS version: 3.11.0.776-dev
Build date: 19:37:50 Apr 20 2022 (2930)
- ReGamedll
-
ReGameDLL version: 5.21.0.546-dev
- Версия Metamod
-
Metamod v1.21p37 2013/05/30 (5:13)
- Список метамодулей
-
1] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0-d ini Start ANY
[ 2] Reunion RUN - reunion_mm_i386. v0.1.92d ini Start Never
[ 3] Rechecker RUN - rechecker_mm_i38 v2.3 ini Chlvl ANY
[ 4] WHBlocker RUN - whblocker_mm_i38 v1.5.692 ini Chlvl ANY
[ 5] Revoice RUN - revoice_mm_i386. v0.1.0.3 ini Start Never
[ 6] ReAPI RUN - reapi_amxx_i386. v5.21.0. pl1 ANY Never
[ 7] gRIP RUN - grip_amxx_i386.s v0.1.5 B pl1 ANY ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0-d pl1 ANY ANY
[ 9] Ham Sandwich RUN - hamsandwich_amxx v1.9.0-d pl1 ANY ANY
[10] MySQL RUN - mysql_amxx_i386. v1.9.0-d pl1 ANY ANY
[11] CStrike RUN - cstrike_amxx_i38 v1.9.0-d pl1 ANY ANY
[12] Engine RUN - engine_amxx_i386 v1.9.0-d pl1 ANY ANY
[13] Fun RUN - fun_amxx_i386.so v1.9.0-d pl1 ANY ANY
[14] CSX RUN - csx_amxx_i386.so v1.9.0-d pl1 ANY ANY
[15] ReAimDetector RUN - reaimdetector_am v0.2.2 pl1 ANY Never
15 plugins, 15 running
- Список плагинов
-
1] Custom Player Models A 0.2.1 F@nt0M & BlackSi custom_player_m running
[ 2] Custom Player Models T 0.2.1 BlackSignature custom_player_m running
[ 3] Custom Player Models C 0.2.2 BlackSignature custom_player_m debug
[ 4] Night VIPs 1.1.1 szawesome night_vips.amxx running
[ 5] [ReAPI] Healthnade 0.0.4f F@nt0M + mx?! reapi_healthnad running
[ 6] Admin Chat 1.8.2 AMXX Dev Team AdminChat.amxx running
[ 7] FreshBans 1.4.0b kanagava fresh_bans.amxx running
[ 8] Yekta's Combo Sprite 3.2 Yek'-ta yek_combosprite running
[ 9] Health Bar 2.0 Bboy Grun health_bar.amxx running
[ 10] Telegram MSG 1.2.0 ex3m777 Telegam_sender. running
[ 11] [RS] Auto-Demo Recorde 1.0.2 vk/felhalas RS_DemoRecord.a running
[ 12] All Death Beams 0.9 SpaceDude all_death_beams running
[ 13] Mode 2x2 1.9 s1lent mode.amxx running
[ 14] GameCMS_MapManager 1.1 zhorzh78 gamecms_mapmana running
[ 15] say /adminka 1.1 Pa1n say_adminka.amx running
[ 16] Check Admin & Vip 2.2 Leo_[BH] check_admin_vip running
[ 17] Change Team 1.1 neygomon changeteam.amxx running
[ 18] Unlimited ChooseTeam ( 1.0 ConnorMcLeod & p unlimited_choos running
[ 19] Advanced Ultimate Weap 0.0.3-Alph steelzzz advanced_ultima running
[ 20] SF Warn Menu 0.1.4g serfreeman1337 sf_admin_warns. running
[ 21] WinTeam Sprite 0.0.8 BENI-CS.RU WinTeam_Sprite. running
[ 22] VIP 04.02.20 OSTROG vip.amxx running
[ 23] Admin Loader 2.9 neygomon admin_loader.am running
[ 24] Steam Bonus 1.6.0 Radius | Stimul steam_bonus.amx running
[ 25] Say Prefix 0.93 Safety1st say_prefix.amxx running
[ 26] InfoConnects 1.0 PAffAEJIkA :3 InfoConnects.am running
[ 27] No Team Flash 0.2 KRoTaL no_team_flash.a running
[ 28] AWPoff 1.2 PAffAEJIkA :3 awp_off.amxx running
[ 29] Block Pickup Gold 0.1 Vaqtincha Block_VIP_MF.am running
[ 30] CSGO Grafiti Plugin 2.0 Fatih ~ EjderYa CSGO_Graffiti_P running
[ 31] Scope Alert 1.1 Kriminal ScopeAlert.amxx running
[ 32] Меню Диджея 1.1 101FPS menu_didjeya.am running
[ 33] Killa HP 1.6 jas0n killa_hp.amxx running
[ 34] Team Grenade Trail 1.2 Numb team_grenade_tr running
[ 35] VIP Menu [CS RAIN] 0.15 Leo_[BH] vip_girl.amxx running
[ 36] MultiJump 1.1 twistedeuphoria multijump.amxx running
[ 37] Advanced Kill Assists 1.2 Xelson next21_kill_ass running
[ 38] AMXX Gag 1.5.0 xPaw & Exolent ( amx_gag.amxx running
[ 39] Connect users 0.1 neugomon.ru, Rem connect_users.a running
[ 40] XMAS Skybox 1.0 SeMax xmas_sky.amxx running
[ 41] Knives Menu 0.1 Subb98 knifes_menu.amx running
[ 42] FreeAmmoEveryRound 0.1 SHLAKBAUM freeammoeveryro running
[ 43] Furien Score & Round 0.2.1 Askhanar Score.amxx running
[ 44] Lite Translit 2.8 neygomon lite_translit.a running
[ 45] Silly C4 1.1 Cheap_Suit sillyc4.amxx running
[ 46] WarmUP Pro 5.6 Beta ReymonARG warmuppro.amxx running
[ 47] Info Rank 0.2 maFFyoZZyk info_rank.amxx running
[ 48] mute menu 1.0 cheap_suit Mute_Menu.amxx running
[ 49] Block cheat key 1.1 9 rpamm!? block_key.amxx running
[ 50] Automatic knife duel 0.3x JGHG / Leo_[BH] knf_duel.amxx running
[ 51] Restrict Weapons 1.9.0-dev+ AMXX Dev Team restmenu.amxx running
[ 52] Back Weapons 1.87 hoboman313/cheap backweapons.amx running
[ 53] Ban Cs 10.0 Empower amx_bancs.amxx running
[ 54] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 55] Server AMXMODMENU [INI 1.0 Leo_[BH] amxmodmenu.amxx running
[ 56] VIP Score Board 1.0 Leo_[BH] vip_score_board running
[ 57] VOTEBAN_BY_SLIMSHADY 3.0 SLIMSHADY_MOD voteban_by_slim running
[ 58] AFK Manager v1.4d Leon McVeran afk_manager.amx running
[ 59] Admin Spectator ESP 1.3 KoST admin_spec_esp. running
[ 60] Ultimate Sound 1.5 Dizzy ultimate_sounds running
[ 61] Killing Particles 1.01 metallicawOw KP_FIX.amxx running
[ 62] Time Lights 1.1 Leo_[BH] time_light.amxx running
[ 63] unknown unknown unknown render.amxx running
[ 64] c4 timer 1.1 cheap_suit c4timer.amxx running
[ 65] Server Menu [INI] 1.0 server_menu.amx running
[ 66] Reset Score 1.0 Silenttt resetscore.amxx running
[ 67] unknown unknown unknown transfer.amxx running
[ 68] CS Revo: Camera New 1.0 Nani | Wilian M. csrevo_camera_n running
[ 69] HATS 0.2 SgtBane Hats02.amxx running
[ 70] Parachute 2.0 Leo_[BH] parachute.amxx running
[ 71] anti block 0.1 cheap_suit zp_antiblock.am running
[ 72] Admin Commands 1.9.0-dev+ AMXX Dev Team admincmd.amxx running
[ 73] Slots Reservation 1.9.0-dev+ AMXX Dev Team adminslots.amxx running
[ 74] Menus Front-End 1.9.0-dev+ AMXX Dev Team menufront.amxx running
[ 75] Commands Menu 1.9.0-dev+ AMXX Dev Team cmdmenu.amxx running
[ 76] Players Menu 1.9.0-dev+ AMXX Dev Team plmenu.amxx running
[ 77] Maps Menu 1.9.0-dev+ AMXX Dev Team mapsmenu.amxx running
[ 78] Plugin Menu 1.9.0-dev+ AMXX Dev Team pluginmenu.amxx running
[ 79] Anti Flood 1.9.0-dev+ AMXX Dev Team antiflood.amxx running
[ 80] Scrolling Message 1.9.0-dev+ AMXX Dev Team scrollmsg.amxx running
[ 81] Info. Messages 1.9.0-dev+ AMXX Dev Team imessage.amxx running
[ 82] Admin Votes 1.9.0-dev+ AMXX Dev Team adminvote.amxx running
[ 83] NextMap 1.9.0-dev+ AMXX Dev Team nextmap.amxx running
[ 84] TimeLeft 1.8.2 AMXX Dev Team timeleft_rus.am running
[ 85] Pause Plugins 1.9.0-dev+ AMXX Dev Team pausecfg.amxx running
[ 86] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 87] CS Misc. Stats 1.9.0-dev+ AMXX Dev Team miscstats.amxx running
[ 88] CS Stats Logging 1.9.0-dev+ AMXX Dev Team stats_logging.a running
[ 89] AES: Bonus CSTRIKE 0.5.9 [REA serfreeman1337/s aes_bonus_cstri running
[ 90] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 91] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 92] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 93] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 94] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 95] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 96] CSStatsX SQL 0.7.4+1 serfreeman1337 csstatsx_sql.am running
[ 97] Stats Configuration 1.9.0-dev+ AMXX Dev Team statscfg.amxx running
97 plugins, 97 running
- Автор плагина
- fantom BlackSignature
- Версия плагина
- 0.2.2
- Исходный код
-
#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
В чем может быть проблема?
В этой теме было размещено решение! Перейти к решению.
Вложения
-
5.3 KB Просмотры: 118