Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[NMRIH] mute ambiance music


owner_2019
 Udostępnij

Rekomendowane odpowiedzi

Hi!

I'd like to share with you guys a plugin that might be useful to a small amount of people.

What it does? its very basic! it sends the 'snd_musicvolume 0.000000' cvar to all connected player clients (turning their music volume all the way down) it will send this command every 15 seconds in a endless loop. while i dont feel too good about using a timer for this (its rather a ghetto fix :oops:) it does work and serves the intended purpose. :wink:

Why?

whenever you play in a nmrih server you always will hear the default ambiance music playing in the background - while it sounds good i rather not have this happening while listening to the radio channels my server provides having 2 sounds playback throughout each other is very annoying.

While looking for a plugin that could take care of this little problem i spotted this plugin https://forums.alliedmods.net/showthread.php?p=2180885 [NMRiH]NMS Ambient Sound Mute v1.0 (08-08-2014) created by bhunji. Great! but it didn't work. this is where i decided to start working on this plugin using a different and a more simple but working approach.

Install instruction: drop the .smx file in your addons/sourcemod/plugins folder and it should work, there are no configuration options because this plugin is just too simple for that.

Attached Files
File Type: smx nmrih_killmusic.smx (3.7 KB)
File Type: sp Get Plugin or Get Source (nmrih_killmusic.sp - 704 Bytes)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...