<div><font face="Comic Sans MS"><b><font size="7"><div align="center"><font color="#FF0000"><</font> <font color="#0000BF"> Win Messages & Sounds</font> <font color="#FF0000">></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 "Bomb Planted", "The target has been bombed", "Bomb Defused" 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 <<font color="#FF0000">default</font>: "3"></b> -- How do you want the messages to be displayed.<ul><li>"0" = In the center of the screen (yellow color, being unable to change it).</li>
<li>"1" = In the chat.</li>
<li>"2" = HUD message.</li>
<li>"3" = DHUD message.</li>
</ul></li>
<li><b>winmsg_hud_xpos <<font color="#FF0000">default</font>: "-1.0"></b> -- X position for (D)HUD messages.</li>
<li><b>winmsg_hud_ypos <<font color="#FF0000">default</font>: "0.10"></b> -- Y position for (D)HUD messages.</li>
<li><b>winmsg_hud_effects <<font color="#FF0000">default</font>: "0"></b> -- Effects for (D)HUD messages.<ul><li>"0" = No effects.<br />"1" = Blinking effect.<br />"2" = Type writer.</li>
</ul></li>
<li><b>winmsg_hud_fxtime <<font color="#FF0000">default</font>: "2.0"></b> -- Effect duration for (D)HUD messages.</li>
<li><b>winmsg_hud_holdtime <<font color="#FF0000">default</font>: "5.0"></b> -- Duration for (D)HUD messages.</li>
<li><b>winmsg_hud_fadeintime <<font color="#FF0000">default</font>: "0.5"></b> -- Fade-in duration for (D)HUD messages.</li>
<li><b>winmsg_hud_fadeouttime <<font color="#FF0000">default</font>: "1.0"></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"><</span><span style="color: #0000BB">Message ID</span><span style="color: #007700">> <New </span><span style="color: #0000BB">Message</span><span style="color: #007700">> <</span><span style="color: #0000BB">Message Colors </span><span style="color: #007700">(<</span><span style="color: #0000BB">red</span><span style="color: #007700">> <</span><span style="color: #0000BB">green</span><span style="color: #007700">> <</span><span style="color: #0000BB">blue</span><span style="color: #007700">>)>
<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 "< Terrorists Win >" "255 0 0"<br />#CTs_Win "< Counter-Terrorists Win >" "0 0 255"<br />#Bomb_Planted "< The Bomb has been Planted >" "255 255 0"<br />#Bomb_Defused "< The Bomb has been Defused >" "0 255 0"<br />#Round_Draw "< Round Draw >" "255 255 255"<br />#Target_Bombed "< Target Successfully Bombed >" "255 0 255"<br />#Target_Saved "< Target has been Saved >" "0 255 0"<br />#Game_Commencing "< Game Commencing >" "R R R"<br />#Auto_Team_Balance_Next_Round "< Auto Team Balance Next Round >" "R R R"
<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 "R R R". 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"><</span><span style="color: #0000BB">Audio ID</span><span style="color: #007700">> [New </span><span style="color: #0000BB">Sound</span><span style="color: #007700">]
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>You can leave the "[New Sound]" 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 </span><span style="color: #DD0000">"misc/terrorists_win.wav" </span><span style="color: #007700">-- </span><span style="color: #0000BB">This will replace the sound when terrorists win</span><span style="color: #007700">.<br />%!</span><span style="color: #0000BB">MRAD_ctwin </span><span style="color: #DD0000">"misc_ctswin.wav" </span><span style="color: #007700">-- </span><span style="color: #0000BB">This will replace the sound when counter</span><span style="color: #007700">-</span><span style="color: #0000BB">terrorists win</span><span style="color: #007700">.<br />%!</span><span style="color: #0000BB">MRAD_FIREINHOLE </span><span style="color: #007700">-- </span><span style="color: #0000BB">This will block the sound when someone throws a grenade</span><span style="color: #007700">.
<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&search_by2=winmessages&query=&loc=_all&sort=&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ł
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.
|
Guest Message by DevFuse

Win Messages & Sounds
Temat rozp. Adminek AMXX.PL, 01.05.2016 21:36
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych