Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[NMRIH] mute ambiance music


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 492
  • Lokalizacja:AMXX.PL
Offline

Napisano 12.05.2016 22:40

<div>Hi!<br /><br />I'd like to share with you guys a plugin that might be useful to a small amount of people.<br /><br /><b>What it does?</b> 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:<br /><br /><b>Why?</b><br /><br />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. <br /><br />While looking for a plugin that could take care of this little problem i spotted this plugin <a href="https://forums.allie....php?p=2180885"target="_blank">https://forums.allie...p?p=2180885</a> [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.<br /><br />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.</div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...llmusic.smx</a>(3.7 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...78"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1463089190">GetSource</a> (nmrih_killmusic.sp - 704 Bytes)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych