Прерывание музыки при входе на сервер

urpok

Пользователь
Регистрация
16 Июл 2017
Сообщения
44
Симпатии
5
Пол
Мужской
OS
Linux
Amx Mod X
AMXX 1.9.0
Билд
Protocol version 48 Exe version 1.1.2.7/Stdio (cstrike) ReHLDS version: 3.8.0.739-dev Build date: 09:46:24 Apr 21 2021 (2566)
ReGamedll
ReGameDLL version: 5.20.0.492-dev Build date: 15:26:35 Jan 4 2021
Metamod
Metamod-r v1.3.0.128, API (5:13) Metamod-r build: 17:47:54 Aug 24 2018
Meta модули
Код:
[ 1] SafeNameAndChat RUN - safenameandchat.so v1.1 ini ANY
[ 2] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY
[ 3] Reunion RUN - reunion_mm_i386.so v0.1.92d ini Start Never
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5271 ini Start ANY
[ 6] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini ANY
[ 7] Rechecker RUN - rechecker_mm_i386.so v2.5 ini ANY
[ 8] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini ANY
[ 9] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini ANY
[10] Placeholders disabler RUN - plfix_mm_i386.so v0.0.3 ini Start Never
[11] MySQL Threads RUN - mysqlt_amxx_i386.so v1.2 pl5 ANY ANY
[12] CURL AMXX RUN - curl_amxx_i386.so v1.1.1 pl5 ANY ANY
[13] AuthEmu RUN - authemu_amxx_i386.so v5.2.12.425-dev pl5 ANY Never
[14] Sypex Geo RUN - sypexgeo_amxx_i386.so v2.1 pl5 ANY ANY
[15] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl5 ANY Never
[16] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[17] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[18] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[19] VTC AMXX API RUN - VtcApi_amxx_i386.so v2017 RC pl5 ANY ANY
[20] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[21] ReAPI RUN - reapi_amxx_i386.so v5.19.0.211-dev pl5 ANY Never
[22] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[23] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
[24] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl5 ANY ANY
24 plugins, 24 running
Плагины
Код:
[ 1] GameCMS_API 5.5.0 vzhorzh78 gamecms_api_5.5 running
[ 2] CMSStats_MySQL 2.0.4 vzhorzh78 cmsstats_mysql_ running
[ 3] GameCMS_Registration 1.5 vzhorzh78 gamecms_registr running
[ 4] GameCMS_GagManager 2.2.3 vzhorzh78 gamecms_gagmana running
[ 5] From Rock to Ban 1.02 vSafety1st++ rock2gag.amxx running
[ 6] FreshBans 1.4.2b vkanagava fresh_bans.amxx running
[ 7] fb_forwards 0.1.4 vKanagava & Realu FB_Forwards.amx running
[ 8] Mode Server 2x2 2.5re vs1lent Mode_Server.amx running
[ 9] [Coins System] Core 0.0.1 vsteelzorrr Coins_Core.amxx running
[ 10] [Coins System] SQL v0.0.1 steelzorrr Coins_SQL.amxx running
[ 11] [Coins System] Weapons v0.0.1 steelzorrr Coins_Weapons.a running
[ 12] [Coins System] Give me v0.0.1 steelzorrr Coins_Give_Me.a running
[ 13] WalkGuard v1.3.2 mogel WalkGuard_Zone. running
[ 14] VK.Chat v0.2.1 uMk0 vk.chat.amxx running
[ 15] Auto Night ViP v1.0 ThePhoenix Auto_Night_ViP. running
[ 16] Amx ViP&Gold Menu v1.6.3 Name AVGM AmxViPGoldMenu. running
[ 17] Lite TeamBalancer v1.20 neygomon Lite_TeamBalanc running
[ 18] Admin Commands v1.9.0.5271 AMXX Dev Team admincmd.amxx running
[ 19] Admin Help v1.9.0.5271 AMXX Dev Team adminhelp.amxx running
[ 20] Slots Reservation v1.9.0.5271 AMXX Dev Team adminslots.amxx running
[ 21] Multi-Lingual System v1.9.0.5271 AMXX Dev Team multilingual.am running
[ 22] Menus Front-End v1.9.0.5271 AMXX Dev Team menufront.amxx running
[ 23] Commands Menu v1.9.0.5271 AMXX Dev Team cmdmenu.amxx running
[ 24] Players Menu v1.9.0.5271 AMXX Dev Team plmenu.amxx running
[ 25] Maps Menu v1.9.0.5271 AMXX Dev Team mapsmenu.amxx running
[ 26] Plugin Menu v1.9.0.5271 AMXX Dev Team pluginmenu.amxx running
[ 27] Admin Chat v1.9.0.5271 AMXX Dev Team adminchat.amxx running
[ 28] Info. Messages v1.9.0.5271 AMXX Dev Team imessage.amxx running
[ 29] Admin Votes v1.9.0.5271 AMXX Dev Team adminvote.amxx running
[ 30] Pause Plugins v1.9.0.5271 AMXX Dev Team pausecfg.amxx running
[ 31] Restrict Weapons v1.9.0.5271 AMXX Dev Team restmenu.amxx running
[ 32] CMSStats_StatsX v1.04 / 03. AMXX Dev Team++ cmsstats_statsx running
[ 33] CMSStatsX_Configuratio v1.9.0.5229 AMXX Dev Team cmsstats_statsc running
[ 34] CMSStats_Ranks v2.0.1 zhorzh78 cmsstats_ranks_ running
[ 35] CMSRanks Bonus v1.0.0 cs-games.club CMSRanks_Bonus. running
[ 36] GameCMS_Present v1.6.13 zhorzh78 gamecms_present running
[ 37] GameCMS_Present Coins v1.1 zhorzh78 presents_coins_ running
[ 38] [GRENADE] Molotov v1.0.1 medusa Grenade_Molotov running
[ 39] [ReAPI] Healthnade v0.0.3 F@nt0M ReAPI_Health_Na running
[ 40] Gas Grenades v1.6 ConnorMcLeod Gas_Grenades.am running
[ 41] Game Namer v1.1 NeuroToxin Game_Name_Chang running
[ 42] DHUD C4 Timer v3.2.1 Twe3k & urpok (m C4_DHUD_Timer.a running
[ 43] Plant C4 MIX (Original v1.0.1 Alka & urpok (mi Plant_Mix_C4.am running
[ 44] High Ping Kicker v0.16.2 by BahogaAa Ping_Kicker.amx running
[ 45] AFK Manager v1.0.4 Freeman AFK_Manager.amx running
[ 46] Parachute v1.3 KRoT@L/JTP10181 Parachute_No_Mo running
[ 47] [ReAPI] AWPoff v1.3 PAffAEJIkA :3 AWP_Limit.amxx running
[ 48] Flash Control v1.1 neugomon Flash_Control.a running
[ 49] Weapons Skins Manager v0.0.1 Vaqtincha Weapons_Skins_M running
[ 50] Lite Kill Assist v1.17 neygomon Lite_Kill_Assis running
[ 51] Killer ScreenFade v0.0.5 Vaqtincha ReAPI_Killer_Sc running
[ 52] CockRoaches v0.1.1 PM CockRoaches.amx running
[ 53] INFO Round v1.0 neygomon Info_Round.amxx running
[ 54] Spect Bot v1.2 SKAJIbnEJIb & Bo Spectators_Bot. running
[ 55] resetscore(ReAPI) v1.0 Phantom Reset_Score.amx running
[ 56] Automatic Push Player v1.0 Name_APP Automatic_Push_ running
[ 57] Autoresponder/Advertis v0.5 MaximusBrood Advertiser_Mana running
[ 58] New Demo Record (ReMix v2.0 By urpok New_Demo_Record running
[ 59] Block grande info v1.0 author No_Fire_In_The_ running
[ 60] Music Connection Serve v1.0.1 MCS Music_Connectio running
[ 61] Lite Translit v2.8 neygomon Lite_Translit_S running
[ 62] V.I.P Custom Weapons v1.0.0 Vaqtincha vip_custom.amxx running
[ 63] V.I.P Custom KNIFE v1.0.0 Vaqtincha custom_knife.am running
[ 64] V.I.P Custom DEAGLE v1.0.0 Vaqtincha custom_deagle.a running
[ 65] V.I.P Custom M4A1 v1.0.0 Vaqtincha custom_m4a1.amx running
[ 66] V.I.P Custom AK-47 v1.0.0 Vaqtincha custom_ak47.amx running
[ 67] V.I.P Custom AWP v1.0.0 Vaqtincha custom_awp.amxx running
[ 68] Custom Player Models A v0.2.1 F@nt0M & BlackSi Custom_Player_M running
[ 69] Custom Player Models C v0.2.2 BlackSignature Custom_Player_M running
69 plugins, 69 running
Amxx Модули
Код:
[ 1] MySQL Threads v1.2 AMX Mod X Dev Team running
[ 2] CURL AMXX v1.1.1 Polarhigh running
[ 3] AuthEmu v5.2.12.425 Dev-MS.ru running
[ 4] Sypex Geo v2.1 quckly running
[ 5] ReAimDetector v0.2.2 ReHLDS Team running
[ 6] MySQL v1.9.0.5263 AMX Mod X Dev Team running
[ 7] Engine v1.9.0.5263 AMX Mod X Dev Team running
[ 8] Ham Sandwich v1.9.0.5263 AMX Mod X Dev Team running
[ 9] VTC AMXX API v2017 RC WPMG.PRoSToC0der running
[10] FakeMeta 1.9.0.5263 AMX Mod X Dev Team running
[11] ReAPI 5.19.0.211 Asmodai & s1lent running
[12] CStrike 1.9.0.5263 AMX Mod X Dev Team running
[13] Fun 1.9.0.5263 AMX Mod X Dev Team running
[14] CSX 1.9.0.5263 AMX Mod X Dev Team running
[15] nVault 1.9.0.5263 AMX Mod X Dev Team running
[16] JSON 1.9.0.5263 AMX Mod X Dev Team running
[17] Sockets 1.9.0.5263 AMX Mod X Dev Team running
17 modules, 17 correct
Ошибка
Код:
Да её собственно и нет...
Исходник
Код:
#include <amxmodx>

#define PLUGIN "Music Connection Server"
#define VERSION "1.0.1"
#define AUTHOR "MCS"

#define SOUND_MAX 8 // Количество треков.

new soundlist[SOUND_MAX][]=
{
"sound/MusicConnection/track1", // Треки записываются без формата .mp3
"sound/MusicConnection/track2",
"sound/MusicConnection/track3",
"sound/MusicConnection/track4",
"sound/MusicConnection/track5",
"sound/MusicConnection/track6",
"sound/MusicConnection/track7",
"sound/MusicConnection/track8"
}

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}

public client_connect(id)
{
new i
i = random_num(0, SOUND_MAX-1)
client_cmd(id, "mp3 play %s", soundlist)
}

public plugin_precache()
{
precache_generic("sound/MusicConnection/track1.mp3")
precache_generic("sound/MusicConnection/track2.mp3")
precache_generic("sound/MusicConnection/track3.mp3")
precache_generic("sound/MusicConnection/track4.mp3")
precache_generic("sound/MusicConnection/track5.mp3")
precache_generic("sound/MusicConnection/track6.mp3")
precache_generic("sound/MusicConnection/track7.mp3")
precache_generic("sound/MusicConnection/track8.mp3")
}
Имеется плагин проигрывания музыки при подключении на сервер. (лежал глубоко на компе, использовал давно для ZM сервера, скачен на просторах интернета)
Решил его установить. Всё хорошо, работает как надо, пока идёт подключение (скачка файлов) на сервер, музыка играет...

Вот теперь появляется то самое "НО"
Как только ты подключился на сервер и тебе показывает Motd окно, музыка прерывается и больше не играет. (точнее она не доигрывает оставшиеся несколько секунд)
Длинна музыкального файла 30 - 35 секунд.

Вопрос, есть ли вариант, как-то устранить этот момент, что бы не зависимо от того, первый раз ты заходишь или же уже давно играешь, что бы этот отрывок проигрывался до конца и после непосредственного входа на сервер (показа Motd окна) ?

По началу, подумал, что проблема в Motd окне (может как-то файл влиял на это). Удалил этот файл, перезапустил сервер, музыка опять проиграла до того момента, пока я не подключился и естественно прервалась.

Спасибо.
 

NordicWarrior

Скриптер
Пользователь
Регистрация
12 Фев 2019
Сообщения
31
Симпатии
5
Возможно, дело в клиенте. Протестируйте отдельно - команду mp3 play. Запустите любую музыку, потом зайдите на любой сервер
 
Сверху Снизу