Half-Life и Adrenaline Gamer форум http://aghl.ru/forum/ |
|
While map change play sound http://aghl.ru/forum/viewtopic.php?f=28&t=2943 |
Страница 1 из 2 |
Автор: | DarknessVevo [ 12 окт 2018, 04:19 ] |
Заголовок сообщения: | While map change play sound |
Hi. I dont have good eng first of all sorry about that. I want a plugin which plays sound while map changing. I tried cs 1.6's round sound plugin in hl it downloads sounds but not playing them when map changing. Can anyone help me about this situation? |
Автор: | abdobiskra [ 12 окт 2018, 14:40 ] |
Заголовок сообщения: | Re: While map change play sound |
Hi, post ur code here. |
Автор: | DarknessVevo [ 12 окт 2018, 18:27 ] |
Заголовок сообщения: | Re: While map change play sound |
abdobiskra писал(а): Hi, post ur code here. #include < amxmodx > #include < fun > #include < engine > #define PLUGIN "El Sonu Flaşlı Müzik" #define VERSION "v.1" #define AUTHOR "KG51" public plugin_init() { register_plugin( PLUGIN, VERSION, AUTHOR ) register_logevent( "elsonu", 2, "1=Round_End" ) } public plugin_precache() { precache_sound( "misc/r0.wav" ) precache_sound( "misc/r1.wav" ) precache_sound( "misc/r2.wav" ) precache_sound( "misc/r3.wav" ) precache_sound( "misc/r4.wav" ) precache_sound( "misc/r5.wav" ) return PLUGIN_CONTINUE } public elsonu() { client_cmd( 0,"stopsound" ) client_cmd( 0,"spk misc/r0" ) set_task( 0.4,"elsonumuzikler" ) set_lights( "#OFF" ) flasefekti() remove_task(123) } public flasefekti() { new oyuncular[ 32 ], sayi get_players( oyuncular,sayi,"h" ) for( new i=0;i<sayi;i++ ) { message_begin( MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},oyuncular[i] ) write_short( 1<<14 ) write_short( 1<<9 ) write_short( 1<<11 ) write_byte( 255 ) write_byte( 255 ) write_byte( 255 ) write_byte( 255 ) message_end() set_user_rendering( oyuncular[ i ] ) } } public elsonumuzikler() { switch( random_num(0,4) ) { case 0: client_cmd( 0,"spk misc/r1" ) case 1: client_cmd( 0,"spk misc/r2" ) case 2: client_cmd( 0,"spk misc/r3" ) case 3: client_cmd( 0,"spk misc/r4" ) case 4: client_cmd( 0,"spk misc/r5" ) } return PLUGIN_CONTINUE } |
Автор: | abdobiskra [ 12 окт 2018, 19:52 ] |
Заголовок сообщения: | Re: While map change play sound |
look in HL we don't have rounds like Cs. try to replace : Код: public plugin_init() { (pleas try to use code tag) |
Автор: | DarknessVevo [ 13 окт 2018, 00:41 ] |
Заголовок сообщения: | Re: While map change play sound |
abdobiskra писал(а): look in HL we don't have rounds like Cs. try to replace : Код: public plugin_init() { (pleas try to use code tag) Still same downloads sounds but not playing them |
Автор: | abdobiskra [ 13 окт 2018, 01:33 ] |
Заголовок сообщения: | Re: While map change play sound |
You can search more There are several ways here for one example: viewtopic.php?f=19&t=2743 Код: #include < amxmodx > |
Автор: | DarknessVevo [ 13 окт 2018, 01:43 ] |
Заголовок сообщения: | Re: While map change play sound |
I tried it too and dramatically it didnt play sound too... |
Автор: | abdobiskra [ 13 окт 2018, 01:47 ] |
Заголовок сообщения: | Re: While map change play sound |
DarknessVevo писал(а): I tried it too and dramatically it didnt play sound too... Sometimes there are sounds that need to be converted to workAre you sure it works in other cases? |
Автор: | DarknessVevo [ 13 окт 2018, 01:52 ] |
Заголовок сообщения: | Re: While map change play sound |
In your sent link plugin mader said half life's original sounds will randomly play I tried other working sound files none of them worked correctly |
Автор: | abdobiskra [ 13 окт 2018, 02:06 ] |
Заголовок сообщения: | Re: While map change play sound |
If it works, just arrange it by programming it |
Страница 1 из 2 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |