- Ошибка
-
Больно ушам при игре на сервере!
- ОС
- Windows
- Amx Mod X
-
AMX Mod X 1.9.0.5294
- Билд
-
ReHLDS version: 3.13.0.788-dev
Build date: 07:37:36 Jul 12 2023 (3378)
- ReGamedll
-
ReGameDLL version: 5.26.0.668-dev
Build date: 19:02:33 Dec 31 2023
- Версия Metamod
-
Metamod-r v1.3.0.138, API (5:13)
Metamod-r build: 11:50:30 Nov 28 2023
- Список метамодулей
-
description stat pend file vers src load unload
[ 1] AMX Mod X RUN - amxmodx_mm.dll v1.9.0.5294 ini Start ANY
[ 2] Reunion RUN - reunion_mm.dll v0.1.92d ini Start Never
[ 3] Revoice RUN - revoice_mm.dll v0.1.0.34 ini Start Never
[ 4] SafeNameAndChat RUN - safenameandchat.dll v1.2 Beta 3 ini ANY ANY
[ 5] HitBox Fix RUN - hitbox_fix_mm.dll v1.1.5 ini Start ANY
[ 6] ReSemiclip RUN - resemiclip_mm.dll v2.4.3 ini Chlvl ANY
[ 7] ReParachute RUN - parachute_amxx.dll v1.1 Beta pl1 ANY ANY
[ 8] Ham Sandwich RUN - hamsandwich_amxx.dll v1.9.0.5294 pl1 ANY ANY
[ 9] CSX RUN - csx_amxx.dll v1.9.0.5294 pl1 ANY ANY
[10] ReAPI RUN - reapi_amxx.dll v5.24.0.300-dev pl1 ANY Never
[11] FakeMeta RUN - fakemeta_amxx.dll v1.9.0.5294 pl1 ANY ANY
[12] CStrike RUN - cstrike_amxx.dll v1.9.0.5294 pl1 ANY ANY
[13] Fun RUN - fun_amxx.dll v1.9.0.5294 pl1 ANY ANY
[14] Engine RUN - engine_amxx.dll v1.9.0.5294 pl1 ANY ANY
14 plugins, 14 running
- Список плагинов
-
[ 1] Admin Base 1.9.0.5294 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.9.0.5294 AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.9.0.5294 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.9.0.5294 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.9.0.5294 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.9.0.5294 AMXX Dev Team mapsmenu.amxx running
[ 10] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 11] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.9.0.5294 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.9.0.5294 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.9.0.5294 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.9.0.5294 AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.9.0.5294 AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.9.0.5294 AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.9.0.5294 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 21] StatsX 1.9.0.5294 AMXX Dev Team statsx.amxx running
[ 22] Team Select 1.6.0 F@nt0M teamselect.amxx running
[ 23] GunGame AMXX 2.13b Avalanche gungame.amxx running
[ 24] Potti 1.40 p3tsin potti.amxx running
[ 25] Ultimate Gore 1.6 JTP10181 amx_gore_ultima running
[ 26] Vampire Weapons 1.2 Hafner vampire_weapons running
[ 27] HeadShot Blood 1.1 tuty hs_blood.amxx running
[ 28] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 29] Perfect Camera 0.2.5 Nordic Warrior PerfectCamera.a running
[ 30] Hook 1.5 LLInH9rA my_hook.amxx running
[ 31] Welcome Music 1.0 Code RaFa welcome_music.a running
[ 32] Simple Damager 2.1.0 fl0wer simple_damager. running
[ 33] Kills Counter 1.0 Safety1st kills_counter_1 running
[ 34] WeaponState Remember 0.0.4 Vaqtincha weaponstate_rem running
[ 35] BunnyHop Menu 1.2 OverGame bhop_menu.amxx running
[ 36] recoil_manager 1.0.0 fl0wer recoil_manager. running
[ 37] Ultimate Sound 1.5 Dizzy ultimate_sounds running
[ 38] Music Menu 1.3 Fxfighter music_menu.amxx running
38 plugins, 38 running
- Автор плагина
- fxfighter
- Версия плагина
- 1.3
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#define MAX_SONG 41
new P_Menu,P_Load,P_Start,P_CT,P_T
new configLine[65]
new lineNum = 0
new pointNum = -1
new filename[66]
new songs[MAX_SONG][30]
public plugin_init()
{
register_plugin("Music Menu", "1.3", "Fxfighter")
register_clcmd( "say /music","Show_Songs")
register_clcmd( "say_team /music","Show_Songs")
P_Menu = register_cvar("amx_music_menu","1")
P_Load = register_cvar("amx_music_lsong","-1")
P_Start = register_cvar("amx_music_ssong","-1")
P_T = register_cvar("amx_music_tsong","-1")
P_CT = register_cvar("amx_music_ctsong","-1")
register_logevent("Round_start", 2, "1=Round_Start")
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")
}
//adds our song into the menu and removes format
public Show_Songs(id)
{
if(!get_pcvar_num(P_Menu))
return PLUGIN_CONTINUE
new menu = menu_create("Music Menu" , "play_handle");
new i,NR[4],NAME[30],Left[30]
for (i=0; i<MAX_SONG; i++)
{
if(songs[i][0] != 0)
{
format(NR,3,"%i",i)
strtok( songs[i], NAME, 29, Left, 29, '.',0)
menu_additem(menu ,NAME, NR , 0);
}
}
menu_additem(menu ,"Stop All Music", "" , 0);
menu_setprop(menu , MPROP_EXIT , MEXIT_ALL);
menu_display(id , menu , 0);
return PLUGIN_CONTINUE
}
public play_handle(id , menu , item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu);
}
new szCommand[6] , szName[64];
new Access , callback;
menu_item_getinfo(menu , item , Access , szCommand , 5 , szName , 63 , callback);
if(equal(szName , "Stop All Music"))
{
client_cmd(id,"mp3 stop;stopsound")
client_print(id,print_chat,"All Playing music have been stopped")
return PLUGIN_HANDLED
}
client_print(id,print_chat,"you are now listening to %s",szName)
new i = str_to_num(szCommand)
Play_Song(id,i)
menu_destroy(menu);
return PLUGIN_CONTINUE
}
//Load the music frome a file and put it into our array.
public Load()
{
get_configsdir(filename, 65)
format(filename, 65, "%s/songs.ini", filename)
new iLen, song[30]
while(read_file(filename,lineNum++,configLine,64,iLen))
{
if (iLen > 0)
{
pointNum++
parse(configLine, song, 29)
if(song[0] != 0)
{
songs[pointNum]=song
}
}
}
return PLUGIN_CONTINUE
}
//Make the user download all music.
public plugin_precache()
{
Load()
new i
new Download[50]
for (i=0; i<MAX_SONG; i++)
{
if(songs[i][0] != 0)
{
format(Download,49,"music/%s",songs[i])
precache_sound(Download)
}
}
}
public Song(id,nr)
{
if(nr == 0)
return PLUGIN_CONTINUE
nr-=1
if(nr == -2)
{
nr = MAX_SONG-1
while(songs[nr][0] == 0)
nr = random_num(0,MAX_SONG-1)
}
Play_Song(id,nr)
return PLUGIN_CONTINUE
}
//Made this a function нnstead so i can call whenever i need it
public Play_Song(id,nr)
{
if(contain(songs[nr], ".mp3"))
{
client_cmd(id,"mp3 play sound/music/%s",songs[nr])
}
else
{
client_cmd(id,"spk music/%s",songs[nr])
}
}
//Masive Spam under.... beware
public Round_start()
{
Song(0,get_pcvar_num(P_Start))
}
//Ct Win Music
public t_win()
{
Song(0,get_pcvar_num(P_T))
}
//Ct Win Music
public ct_win()
{
Song(0,get_pcvar_num(P_CT))
}
//connect music
public client_connect(id)
{
Song(id,get_pcvar_num(P_Load))
}
Мне нужна помощь с плагином музыки, по поводу того: что-бы при подключении к серверу, и (старта и конца раунда). У меня "не воспроизводилась" одна и та же композиция. Хочется отключить эти переменные. Просто охота слушать музыку только тогда, когда этого хочется.
Вот если что ссылка на плагин: https://forums.alliedmods.net/showthread.php?t=65188
**********************************************************************************************
Отступление: ещё у Вас на сайте не работают команды которые прописаны!
"sm plugins list "
"sm version"
Вот если что ссылка на плагин: https://forums.alliedmods.net/showthread.php?t=65188
**********************************************************************************************
Отступление: ещё у Вас на сайте не работают команды которые прописаны!
"sm plugins list "
"sm version"
В этой теме было размещено решение! Перейти к решению.