Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

Win Messages & Sounds


  • 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:7174
  • Lokalizacja:AMXX.PL
Offline

Napisano 01.05.2016 21:36

<div><font face="Comic Sans MS"><b><font size="7"><div align="center"><font color="#FF0000">&lt;</font> <font color="#0000BF"> Win Messages &amp; Sounds</font> <font color="#FF0000">&gt;</font></div></font></b><br /><div align="center"><font color="#FF0000"><b>With this plugin you can easily replace the standard in-games messages like &quot;Bomb Planted&quot;, &quot;The target has been bombed&quot;, &quot;Bomb Defused&quot; etc. In addition, you can also replace the CT/T win sounds, sounds when planting/defusing the bomb, radio command sounds and so on.</b></font></div><br /><b><font size="4"><u><font color="#0000BF">Cvars:</font></u></font></b><br /><br /><ul><li><b>winmsg_type &lt;<font color="#FF0000">default</font>: &quot;3&quot;&gt;</b> -- How do you want the messages to be displayed.<ul><li>&quot;0&quot; = In the center of the screen (yellow color, being unable to change it).</li>
<li>&quot;1&quot; = In the chat.</li>
<li>&quot;2&quot; = HUD message.</li>
<li>&quot;3&quot; = DHUD message.</li>
</ul></li>
<li><b>winmsg_hud_xpos &lt;<font color="#FF0000">default</font>: &quot;-1.0&quot;&gt;</b> -- X position for (D)HUD messages.</li>
<li><b>winmsg_hud_ypos &lt;<font color="#FF0000">default</font>: &quot;0.10&quot;&gt;</b> -- Y position for (D)HUD messages.</li>
<li><b>winmsg_hud_effects &lt;<font color="#FF0000">default</font>: &quot;0&quot;&gt;</b> -- Effects for (D)HUD messages.<ul><li>&quot;0&quot; = No effects.<br />&quot;1&quot; = Blinking effect.<br />&quot;2&quot; = Type writer.</li>
</ul></li>
<li><b>winmsg_hud_fxtime &lt;<font color="#FF0000">default</font>: &quot;2.0&quot;&gt;</b> -- Effect duration for (D)HUD messages.</li>
<li><b>winmsg_hud_holdtime &lt;<font color="#FF0000">default</font>: &quot;5.0&quot;&gt;</b> -- Duration for (D)HUD messages.</li>
<li><b>winmsg_hud_fadeintime &lt;<font color="#FF0000">default</font>: &quot;0.5&quot;&gt;</b> -- Fade-in duration for (D)HUD messages.</li>
<li><b>winmsg_hud_fadeouttime &lt;<font color="#FF0000">default</font>: &quot;1.0&quot;&gt;</b> -- Fade-out duration for (D)HUD messages.</li>
</ul><br /><br /><b><font size="4"><u><font color="#0000BF">Replacing messages/sounds:</font></u></font></b><br /><br />You can change the messages and sounds from the file <b><font color="#FF8000">configs/WinMessages.ini</font></b>.<br />Use the following form in order to replace a message:<br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">Message&nbsp;ID</span><span style="color: #007700">&gt;&nbsp;&lt;New&nbsp;</span><span style="color: #0000BB">Message</span><span style="color: #007700">&gt;&nbsp;&lt;</span><span style="color: #0000BB">Message&nbsp;Colors&nbsp;</span><span style="color: #007700">(&lt;</span><span style="color: #0000BB">red</span><span style="color: #007700">&gt;&nbsp;&lt;</span><span style="color: #0000BB">green</span><span style="color: #007700">&gt;&nbsp;&lt;</span><span style="color: #0000BB">blue</span><span style="color: #007700">&gt;)&gt;&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>Examples:<br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">#Terrorists_Win&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;&nbsp;Terrorists&nbsp;Win&nbsp;&gt;"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"255&nbsp;0&nbsp;0"<br />#CTs_Win&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;&nbsp;Counter-Terrorists&nbsp;Win&nbsp;&gt;"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"0&nbsp;0&nbsp;255"<br />#Bomb_Planted&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;&nbsp;The&nbsp;Bomb&nbsp;has&nbsp;been&nbsp;Planted&nbs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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"0&nbsp;255&nbsp;0"<br />#Game_Commencing&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;&nbsp;Game&nbsp;Commencing&nbsp;&gt;"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"R&nbsp;R&nbsp;R"<br />#Auto_Team_Balance_Next_Round&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"&lt;&nbsp;Auto&nbsp;Team&nbsp;Balance&nbsp;Next&nbsp;Round&nbsp;&gt;"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"R&nbsp;R&nbsp;R"&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>You can use <b><font color="#FF8040">R</font></b> if you want the given value of the color to be random, otherwise you need to use a number from 0 to 255. For a completely random colored message, use &quot;R R R&quot;. Bear in mind that the colors are active only if you're using (D)HUD messages.<br /><br /><a href="https://forums.allie...38;postcount=4"target="_blank">Messages list</a><br /><br />Use the following form in order to replace a sound:<br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">Audio&nbsp;ID</span><span style="color: #007700">&gt;&nbsp;[New&nbsp;</span><span style="color: #0000BB">Sound</span><span style="color: #007700">]&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>You can leave the &quot;[New Sound]&quot; field blank if you want to simply block that sound.<br /><br />Examples:<br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">%!</span><span style="color: #0000BB">MRAD_terwin&nbsp;</span><span style="color: #DD0000">"misc/terrorists_win.wav"&nbsp;</span><span style="color: #007700">--&nbsp;</span><span style="color: #0000BB">This&nbsp;will&nbsp;replace&nbsp;the&nbsp;sound&nbsp;when&nbsp;terrorists&nbsp;win</span><span style="color: #007700">.<br />%!</span><span style="color: #0000BB">MRAD_ctwin&nbsp;</span><span style="color: #DD0000">"misc_ctswin.wav"&nbsp;</span><span style="color: #007700">--&nbsp;</span><span style="color: #0000BB">This&nbsp;will&nbsp;replace&nbsp;the&nbsp;sound&nbsp;when&nbsp;counter</span><span style="color: #007700">-</span><span style="color: #0000BB">terrorists&nbsp;win</span><span style="color: #007700">.<br />%!</span><span style="color: #0000BB">MRAD_FIREINHOLE&nbsp;</span><span style="color: #007700">--&nbsp;</span><span style="color: #0000BB">This&nbsp;will&nbsp;block&nbsp;the&nbsp;sound&nbsp;when&nbsp;someone&nbsp;throws&nbsp;a&nbsp;grenade</span><span style="color: #007700">.&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><a href="https://forums.allie...38;postcount=8"target="_blank">Sounds list</a><br /><br /><b><font size="4"><u><font color="#0000BF">Images:</font></u></font></b><br /><br /><img src="http://i.imgur.com/fdxuxD5.jpg" border="0" alt="" /><br /><br /><img src="http://i.imgur.com/gxtfXhL.jpg" border="0" alt="" /><br /><br /><img src="http://i.imgur.com/DvFaeGS.jpg" border="0" alt="" /><br /><br /><img src="http://i.imgur.com/WMaANJW.jpg" border="0" alt="" /><br /><br /><a href="http://www.gametracker.com/search/?search_by=server_variable&amp;search_by2=winmessages&amp;query=&amp;loc=_all&amp;sort=&amp;order=" target="_blank"><b><font size="4"><u><font color="#0000BF">Servers using this plugin</font></u></font></b></a><br /></font></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/sma.gif"alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>

<a href="http://www.amxmodx.o...32"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1462134961">GetSource</a> (crx_winmessages.sma - 4.6 KB)

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


<a href="https://forums.allie...essages.ini</a>(1.0 KB)


</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