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

Advanced Resetscore 1.0.0 (15/08/2013 - Thursday)


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

Napisano 15.08.2013 10:47

<!-- BEGIN TEMPLATE: postbit_external -->
<div><div align="center"><b>ADVANCED RESETSCORE</b><br /><b>Counter-Strike 1.6 Gameplay Plugin</b></div><div align="left"><b><u><font color="black">About</font></u>:</b><br />This plugin resets your kill, death and frags on the score board, this plugin can be added on any server, but requires at least AMX Mod X 1.8.1</div> <br /><div align="left"><b><u>Commands</u>:</b><br />- say <b>/resetscore</b><br />- say <b>/restartscore</b><br />- say <b>/rs</b></div> <br /><div align="left">- say_team <b>/resetscore</b><br />- say_team <b>/restartscore</b><br />- say_team <b>/rs</b></div> <br /><div align="left"><b>NOTE: </b><i>It's also not needed to add the '/' symbol to any of the previous commands I've stated above!</i></div> <br /><div align="left"><b><u>Plugin Code</u>:</b></div><!-- BEGIN TEMPLATE: bbcode_php_printable -->
<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">#include&nbsp;&lt;amxmodx&gt;<br />#include&nbsp;&lt;amxmisc&gt;<br />#include&nbsp;&lt;cstrike&gt;<br />#include&nbsp;&lt;fun&gt;<br />#define&nbsp;PLUGIN&nbsp;"Advanced&nbsp;Resetscore"<br />#define&nbsp;VERSION&nbsp;"1.0.0"<br />#define&nbsp;AUTHOR&nbsp;"happy_2012"<br />#define&nbsp;rs_adtime&nbsp;120.0<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">pcvar_Advertise<br /></span><span style="color: #007700">new&nbsp;</span><span style="color: #0000BB">pcvar_Display<br /></span><span style="color: #007700">public&nbsp;</span><span style="color: #0000BB">plugin_init</span><span style="color: #007700">()&nbsp;{<br />&nbsp;<br />&nbsp;</span><span style="color: #0000BB">register_plugin</span><span style="color: #007700">(</span><span style="color: #DD0000">"Advanced&nbsp;Resetscore"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"1.0.0"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"happy_2012"</span><span style="color: #007700">)<br />&nbsp;<br />&nbsp;</span><span style="color: #FF8000">//&nbsp;General&nbsp;chat&nbsp;resetscore&nbsp;commands<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;/resetscore"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;resetscore"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;/restartscore"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;restartscore"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;/rs"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say&nbsp;rs"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;<br />&nbsp;</span><span style="color: #FF8000">//&nbsp;Team&nbsp;chat&nbsp;resetscore&nbsp;commands<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say_team&nbsp;/resetscore"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say_team&nbsp;resetscore"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say_team&nbsp;/restartscore"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say_team&nbsp;restartscore"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say_team&nbsp;/rs"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">register_clcmd</span><span style="color: #007700">(</span><span style="color: #DD0000">"say_team&nbsp;rs"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"reset_score"</span><span style="color: #007700">)<br />&nbsp;<br />&nbsp;</span><span style="color: #0000BB">pcvar_Advertise&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">register_cvar</span><span style="color: #007700">(</span><span style="color: #DD0000">"rs_advertise"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"1"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">pcvar_Display&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">register_cvar</span><span style="color: #007700">(</span><span style="color: #DD0000">"rs_display"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"1"</span><span style="color: #007700">)<br />&nbsp;<br />&nbsp;if(</span><span style="color: #0000BB">get_cvar_num</span><span style="color: #007700">(</span><span style="color: #DD0000">"rs_advertise"</span><span style="color: #007700">)&nbsp;==&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)<br />&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">set_task</span><span style="color: #007700">(</span><span style="color: #0000BB">rs_adtime</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"advertise"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"b"</span><span style="color: #007700">)<br />&nbsp;}<br />&nbsp;<br />}<br />public&nbsp;</span><span style="color: #0000BB">reset_score</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)&nbsp;{<br />&nbsp;<br />&nbsp;</span><span style="color: #0000BB">cs_set_user_deaths</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">set_user_frags</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">cs_set_user_deaths</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">set_user_frags</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br />&nbsp;<br />&nbsp;if(</span><span style="color: #0000BB">get_pcvar_num</span><span style="color: #007700">(</span><span style="color: #0000BB">pcvar_Display</span><span style="color: #007700">)&nbsp;==&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)<br />&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">color_saytext</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^x01[^x04&nbsp;Advanced&nbsp;Resetscore&nbsp;^x01]&nbsp;You&nbsp;have&nbsp;just&nbsp;reseted&nbsp;your&nbsp;score"</span><span style="color: #007700">)<br />&nbsp;}<br />}<br />public&nbsp;</span><span style="color: #0000BB">advertise</span><span style="color: #007700">()&nbsp;{<br />&nbsp;<br />&nbsp;</span><span style="color: #0000BB">set_hudmessage</span><span style="color: #007700">(</span><span style="color: #0000BB">255</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;-</span><span style="color: #0000BB">1.0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.20</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0.2</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">12.0</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">show_hudmessage</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"This&nbsp;server&nbsp;is&nbsp;running&nbsp;Advanced&nbsp;Resetscore^nMade&nbsp;by&nbsp;happy_2012&nbsp;@&nbsp;www.zombies4ever.tk"</span><span style="color: #007700">)<br />&nbsp;<br />}<br />public&nbsp;</span><span style="color: #0000BB">client_putinserver</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">){<br />&nbsp;<br />&nbsp;if(</span><span style="color: #0000BB">get_pcvar_num</span><span style="color: #007700">(</span><span style="color: #0000BB">pcvar_Advertise</span><span style="color: #007700">)&nbsp;==&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)<br />&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">set_task</span><span style="color: #007700">(</span><span style="color: #0000BB">10.0</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"connectmessage"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">_</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"a"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">)<br />&nbsp;}<br />&nbsp;<br />}<br />public&nbsp;</span><span style="color: #0000BB">connectmessage</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">)<br />{<br />&nbsp;if(</span><span style="color: #0000BB">is_user_connected</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">))<br />&nbsp;{<br />&nbsp;&nbsp;</span><span style="color: #0000BB">color_saytext</span><span style="color: #007700">(</span><span style="color: #0000BB">id</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^x01[^x04&nbsp;Advanced&nbsp;Resetscore&nbsp;^x01]&nbsp;^x01Say&nbsp;^x04/rs&nbsp;^x01to&nbsp;reset&nbsp;your&nbsp;score"</span><span style="color: #007700">)<br />&nbsp;}<br />}<br /></span><span style="color: #0000BB">color_saytext</span><span style="color: #007700">(</span><span style="color: #0000BB">player</span><span style="color: #007700">,&nbsp;const&nbsp;</span><span style="color: #0000BB">message</span><span style="color: #007700">[],&nbsp;</span><span style="color: #0000BB">any</span><span style="color: #007700">:...){<br />&nbsp;<br />&nbsp;new&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">[</span><span style="color: #0000BB">301</span><span style="color: #007700">]<br />&nbsp;</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">text</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">300</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"%s"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">message</span><span style="color: #007700">)<br />&nbsp;new&nbsp;</span><span style="color: #0000BB">dest<br />&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">player</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">dest&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">MSG_ONE<br />&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">dest&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">MSG_ALL<br />&nbsp;<br />&nbsp;message_begin</span><span style="color: #007700">(</span><span style="color: #0000BB">dest</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">get_user_msgid</span><span style="color: #007700">(</span><span style="color: #DD0000">"SayText"</span><span style="color: #007700">),&nbsp;{</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">},&nbsp;</span><span style="color: #0000BB">player</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">write_byte</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">write_string</span><span style="color: #007700">(</span><span style="color: #0000BB">check_text</span><span style="color: #007700">(</span><span style="color: #0000BB">text</span><span style="color: #007700">))<br />&nbsp;return&nbsp;</span><span style="color: #0000BB">message_end</span><span style="color: #007700">()<br />&nbsp;<br />}<br /></span><span style="color: #0000BB">check_text</span><span style="color: #007700">(</span><span style="color: #0000BB">text1</span><span style="color: #007700">[]){<br />&nbsp;<br />&nbsp;new&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">[</span><span style="color: #0000BB">301</span><span style="color: #007700">]<br />&nbsp;</span><span style="color: #0000BB">format</span><span style="color: #007700">(</span><span style="color: #0000BB">text</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">300</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"%s"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">text1</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">replace</span><span style="color: #007700">(</span><span style="color: #0000BB">text</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">300</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"!g"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^x04"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">replace</span><span style="color: #007700">(</span><span style="color: #0000BB">text</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">300</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"!t"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^x03"</span><span style="color: #007700">)<br />&nbsp;</span><span style="color: #0000BB">replace</span><span style="color: #007700">(</span><span style="color: #0000BB">text</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">300</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"!y"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"^x01"</span><span style="color: #007700">)<br />&nbsp;return&nbsp;</span><span style="color: #0000BB">text<br />&nbsp;<br /></span><span style="color: #007700">}<br /></span><span style="color: #FF8000">/*&nbsp;AMXX-Studio&nbsp;Notes&nbsp;-&nbsp;DO&nbsp;NOT&nbsp;MODIFY&nbsp;BELOW&nbsp;HERE<br />*{\&nbsp;rtf1\&nbsp;fbidis\&nbsp;ansi\&nbsp;ansicpg1256\&nbsp;deff0\&nbsp;deflang11265{\&nbsp;fonttbl{\&nbsp;f0\&nbsp;fnil&nbsp;Tahoma;}}n\&nbsp;viewkind4\&nbsp;uc1\&nbsp;pard\&nbsp;ltrpar\&nbsp;f0\&nbsp;fs16&nbsp;n\&nbsp;par&nbsp;}<br />*/&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><div align="left"><b><u>Credits</u>:</b></div><b>happy_2012 (Troopz):</b> <i>Creating and coding the plugin</i><br /><b>silentt:</b> <i>The idea of making resetscore plugin as the main developer of it</i><br /> <br /><b><u>Special Thanks</u>:</b><br /><div align="left"><b>dias: </b><i>For some codes I've used from her/his zombie plague classes plugins</i><br /><b>silentt: </b><i>For the idea of making resetscore plugin as the main developer of it</i><br /><b>KiLLeR: </b><i>For helping me testing the plugin and providing a test server</i></div> <br /><div align="left"><b><u>Installation</u>:</b><br />- Open your FTP / gamemod directory<br />- Open addons directory<br />- Open amxmodx directory<br />- Move/copy the scripting file to scripting folder <i>(OPTIONAL)</i><br />- Move/copy the plugin file to plugins folder<br />- Open configs directory<br />- Edit your <u>plugins.ini</u> file and add a line: <i>advanced_resetscore.amxx</i></div> <br /><div align="left"><b><u>Download</u>:</b><br />You can find the scripting file, plugin file and a compressed file <i>(.zip file) </i>in the attachments below!</div> <br /><div align="left">Regards,<br />happy_2013</div></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...38;d=1376560004">advanced_resetscore.zip</a> (5.4 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...?file_id=124292"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1376560016">Get Source</a> (advanced_resetscore.sma - 2.8 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