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

[TF2]MoneyMod (v1.0, 09-02-2014)


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

Napisano 09.02.2014 20:18

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Hi. This is my first plugin, so don't be rude :)<br /><br />My plugin actually does magic is playing sound when someone picked money. Simple.<br />At this moment, it is playing only one sound, because i couldn't find nice sounds. I'll show how to add your sounds below.<br /><br /><b><u>Installation:</u></b> <br />Put Bz2 files on your fastdownload server;<br />Copy .smx and sound files to your server;<br /><br /><b><u>Configuration:</u></b><br />No config now, I don't know how to make it :(<br />To edit my plugin, you need to change the source code at these places:<br /><br /><b><i><u>1st</u></i></b><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br />Lines 32-53 - uncomment as much as you need (remove &quot;//&quot;)<br /><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">public Action:Plugin_Actions()<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; AddFileToDownloadsTable(&quot;sound/moneymod/moneymoneymoney.mp3&quot;);&nbsp; <br />//&nbsp; &nbsp; &nbsp; &nbsp; AddFileToDownloadsTable(&quot;sound/moneymod/&quot;);&nbsp; //uncomment and change to your sound path<br />//&nbsp; &nbsp; &nbsp; &nbsp; AddFileToDownloadsTable(&quot;sound/moneymod/&quot;);&nbsp; <br />//&nbsp; &nbsp; &nbsp; &nbsp; AddFileToDownloadsTable(&quot;sound/moneymod/&quot;);&nbsp; <br />//&nbsp; &nbsp; &nbsp; &nbsp; AddFileToDownloadsTable(&quot;sound/moneymod/&quot;);&nbsp; <br />//&nbsp; &nbsp; &nbsp; &nbsp; AddFileToDownloadsTable(&quot;sound/moneymod/&quot;);&nbsp; <br />//&nbsp; &nbsp; &nbsp; &nbsp; AddFileToDownloadsTable(&quot;sound/moneymod/&quot;);&nbsp; <br />//&nbsp; &nbsp; &nbsp; &nbsp; AddFileToDownloadsTable(&quot;sound/moneymod/&quot;);&nbsp; <br />//&nbsp; &nbsp; &nbsp; &nbsp; AddFileToDownloadsTable(&quot;sound/moneymod/&quot;);&nbsp; <br /><br />&nbsp; &nbsp; &nbsp; &nbsp; PrecacheSound(&quot;moneymod/moneymoneymoney.mp3&quot;);<br />//&nbsp; &nbsp; &nbsp; &nbsp; PrecacheSound(&quot;moneymod/&quot;); //the same as above<br />//&nbsp; &nbsp; &nbsp; &nbsp; PrecacheSound(&quot;moneymod/&quot;);<br />//&nbsp; &nbsp; &nbsp; &nbsp; PrecacheSound(&quot;moneymod/&quot;);<br />//&nbsp; &nbsp; &nbsp; &nbsp; PrecacheSound(&quot;moneymod/&quot;);<br />//&nbsp; &nbsp; &nbsp; &nbsp; PrecacheSound(&quot;moneymod/&quot;);<br />//&nbsp; &nbsp; &nbsp; &nbsp; PrecacheSound(&quot;moneymod/&quot;);<br />//&nbsp; &nbsp; &nbsp; &nbsp; PrecacheSound(&quot;moneymod/&quot;);<br />//&nbsp; &nbsp; &nbsp; &nbsp; PrecacheSound(&quot;moneymod/&quot;);<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><br /><b><i><u>2nd</u></i></b><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br />Line 58 - change to how many sounds you have<br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">new nmax = 1; //max num of sounds (cases below)</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><br /><b><i><u>3rd</u></i></b><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br />Line 67 and 99 - uncomment as much as you need (remove &quot;/*&quot; and &quot;*/&quot;)<br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">/*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EmitSoundToAll(&quot;moneymod/&quot;); // add path you typed in PrecacheSound<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br /><br />...<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 9:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EmitSoundToAll(&quot;moneymod/&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />*/</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><br /><b>Thanks and have fun.</b><br /><br /><b><u>CHANGELOG:</u></b><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">v1.0 - First release</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->//EDIT: Can someone help me make the config file?</div>


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








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


<a href="https://forums.allie...oneymod.zip</a> (68.5 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...37"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...1391972605">Get Source</a> (moneymod.sp - 2.5 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł




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

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