- Ошибка
-
Не могу понять почему 1 модель работает с данным плагином, а модель 2 нет. В чем проблема?
- ОС
- Windows
- Amx Mod X
-
1.9.0
- Билд
-
ReHLDS
- ReGamedll
-
game version не работает в консоли
- Версия Metamod
-
1.3.xx
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion.so v0.1.0.135 ini Start Never
[ 2] AMX Mod X RUN - amxmodx.so v1.9.0.5263 ini Start ANY
[ 3] VoiceTranscoder RUN - vtc.so v2017RC5 ini ANY
[ 4] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 5] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 6] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 7] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 8] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 9] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl2 ANY
9 plugins, 9 running
- Список плагинов
-
[ 1] Plugins Core v1.2.0 Radius plugins_core.am running
[ 2] FreshBans v1.4.5b kanagava fresh_bans.amxx running
[ 3] Admin Loader v3.5 neygomon admin_loader.am running
[ 4] CSStatsX SQL v0.7.4+2 serfreeman1337 aes_csstatsx_sq running
[ 5] Admin Chat v1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 6] Admin Commands v1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 7] Anti Flood v1.9.0.5263 AMXX Dev Team antiflood.amxx running
[ 8] Commands Menu v1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 9] Info. Messages v1.9.0.5263 AMXX Dev Team imessage.amxx running
[ 10] AmxModMenu_New v1.0 CaNiBaL | Remake menufront.amxx running
[ 11] Maps Menu v1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 12] NextMap v1.9.0.5263 AMXX Dev Team nextmap.amxx running
[ 13] Players Menu v1.9.0.5263 AMXX Dev Team plmenu.amxx running
[ 14] Plugin Menu v1.9.0.5263 AMXX Dev Team pluginmenu.amxx running
[ 15] Restrict Weapons v1.9.0.5263 AMXX Dev Team restmenu.amxx running
[ 16] TimeLeft v1.9.0.5263 AMXX Dev Team timeleft.amxx running
[ 17] Scrolling Message v1.9.0.5263 AMXX Dev Team scrollmsg.amxx running
[ 18] Admin Votes v1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 19] CS Misc. Stats v1.9.0.5263 AMXX Dev Team miscstats.amxx running
[ 20] CS Stats Logging v1.9.0.5263 AMXX Dev Team stats_logging.a running
[ 21] Stats Configuration v1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 22] Lite Translit v2.8 neygomon lite_translit.a running
[ 23] Reset Score and Sound v1.0 FarCher reset_score.amx running
[ 24] [MG] Sky v1.0 Nickron mg_sky.amxx running
[ 25] GW_Menu v0.1 The Death GW_Menu.amxx running
[ 26] Players Count in Team v3.0.5 kramesa+Seroff playersmenuvhod running
[ 27] Replace Info Message v2.3 maeStro aka 9iky replace_info_ms running
[ 28] [182] Parachute RBS v17.12.12 KRoT@L/JTP10181 parachute_rbs.a running
[ 29] Grab+ v1.2.3 Ian Cammarata grab_plus.amxx running
[ 30] Weapon Model + Sound R v1.2 GHW_Chronic GHW_Weapon_Repl running
[ 31] Advert Messages v1.2 neygomon advert_messages running
[ 32] Lite MapChooser v2.6 neygomon lite_mapchooser running
[ 33] Free ammo v1.4 asstolavista free_ammo.amxx running
[ 34] AMX VIP Model v1.0 Starik igrokmodel.amxx running
[ 35] AMX VIP Model v1.0 Starik adminmodel.amxx running
[ 36] AMX VIP Model v1.0 Starik vipmodel.amxx running
[ 37] AMX VIP Model v1.0 Starik girlmodel.amxx running
[ 38] Game Change v1.0 AsEkE game_name.amxx running
[ 39] Auto recording demo v2.0 IzI | Bonaqua (R amx_autodemorec running
[ 40] Bomb Timer v3.2 Twe3k plent_bomb.amxx running
[ 41] Lite TeamBalancer v1.20 neygomon lite_balancer.a running
[ 42] Join IP Colored v0.6 Quasar ipvhod.amxx running
[ 43] SF Bets v0.1.5 serfreeman1337 sf_bets.amxx running
[ 44] Damager v1.0 Prayer damager.amxx running
[ 45] Afk Control v0.4.1 Freedo.m | neygo afk_control.amx running
[ 46] mute menu v1.0 cheap_suit Mute_Menu.amxx running
[ 47] Lite VoteBan v1.4 neygomon lite_voteban.am running
[ 48] Auto Restart KNIFE v2.0 Leo_[BH] auto_rr.amxx running
[ 49] Killa HP v1.6 jas0n killa_hp.amxx running
[ 50] End Round Music v2.0 Sho0ter endroundmusic.a running
[ 51] V.I.P Custom Weapons v1.0.0 Vaqtincha vip_custom.amxx running
[ 52] unknown vunknown unknown custom_m4a1.amx paused
[ 53] unknown vunknown unknown custom_deagle.a paused
[ 54] unknown vunknown unknown custom_awp.amxx paused
[ 55] unknown vunknown unknown custom_ak47.amx paused
[ 56] unknown vunknown unknown custom_knife.am paused
[ 57] all_sound v1.2 NIXON all_sound.amxx running
[ 58] CSO Kill Sounds v1.1.0 Radius (based on cso_kill_sounds running
[ 59] Advanced Experience Sy v0.5 Vega serfreeman1337 aes_main.amxx running
[ 60] AES: StatsX v0.5+1 serfreeman1337 aes_statsx.amxx running
[ 61] AES: CStrike Addon v0.5 Vega serfreeman1337 aes_exp_cstrike running
[ 62] AES: Informer v0.5 Vega serfreeman1337 aes_informer.am running
[ 63] AES: Admin Tools v0.5 Vega serfreeman1337 aes_exp_editor. running
- Автор плагина
- fl0wer
- Версия плагина
- 1.1.0
- Исходный код
-
#pragma semicolon 1
#include <amxmodx>
#include <reapi>
new const MOTD_MODEL[] = "models/nezhno_inf.mdl";
enum IntroState
{
INTRO_INIT,
INTRO_PLAYING,
INTRO_END,
}; new IntroState:g_iIntroState[MAX_PLAYERS + 1];
new motdmdl_skippable_intro;
public plugin_precache()
{
register_plugin("MOTD Model", "1.1.0", "fl0wer");
precache_model(MOTD_MODEL);
}
public plugin_init()
{
RegisterHookChain(RG_ShowVGUIMenu, "@ShowVGUIMenu_Pre", false);
RegisterHookChain(RG_HandleMenu_ChooseTeam, "@HandleMenu_ChooseTeam_Pre", false);
bind_pcvar_num(create_cvar("motdmdl_skippable_intro", "0", _, "Players can skip intro by menu keys^n0 - disabled^n1 - enabled", true, 0.0, true, 1.0), motdmdl_skippable_intro);
}
public client_putinserver(id)
{
g_iIntroState[id] = is_user_bot(id) ? INTRO_END : INTRO_INIT;
}
@ShowVGUIMenu_Pre(id, VGUIMenu:menuType, bitsSlots, oldMenu[])
{
if (menuType != VGUI_Menu_Team)
return;
if (g_iIntroState[id] == INTRO_END)
return;
if (get_member(id, m_iJoiningState) == JOINED)
return;
if (g_iIntroState[id] == INTRO_INIT)
{
g_iIntroState[id] = INTRO_PLAYING;
set_entvar(id, var_viewmodel, MOTD_MODEL);
set_task(3.65, "@Task_IntroEnd", id);
}
set_member(id, m_bForceShowMenu, true);
SetHookChainArg(3, ATYPE_INTEGER, 1023);
SetHookChainArg(4, ATYPE_STRING, "\n");
}
@HandleMenu_ChooseTeam_Pre(id, key)
{
if (g_iIntroState[id] == INTRO_END)
return HC_CONTINUE;
if (g_iIntroState[id] == INTRO_PLAYING && motdmdl_skippable_intro)
StopIntro(id);
SetHookChainReturn(ATYPE_INTEGER, false);
return HC_SUPERCEDE;
}
@Task_IntroEnd(task)
{
new id = task;
if (!is_user_connected(id))
return;
StopIntro(id);
}
StopIntro(id)
{
remove_task(id);
g_iIntroState[id] = INTRO_END;
set_entvar(id, var_viewmodel, "");
engclient_cmd(id, "menuselect", "0");
}
Не пойму в чем проблема. Почему 1 модель работает с данным sma, а вторая нет. Кто поможет?
Модели залил на ЯД: https://disk.yandex.ru/d/Ksk8Ox7kLlDIzw
Модели залил на ЯД: https://disk.yandex.ru/d/Ksk8Ox7kLlDIzw
Вложения
-
1.9 KB Просмотры: 107