<!-- BEGIN TEMPLATE: postbit_external -->
<div>This plugin recreates the Deathstreaks system from Call of Duty<br /><br />To clear up any misconceptions about this plugin, this plugin simply TRACKS deathstreaks (amount of deaths without getting a kill)<br /><br />This plugin is also equipped with natives so you don't have to keep remaking the same death tracking system, over and over again, in many plugins when you have one plugin to do the job for you.<br /><br />Instructions: Simply use any of the natives in any of your RTD/Reward-giving plugins and that's it.<br />Example Code<br /><!-- 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: #007700">if (</span><span style="color: #0000BB">GetDeathstreak</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">) < </span><span style="color: #0000BB">5</span><span style="color: #007700">) </span><span style="color: #0000BB">code</span><span style="color: #007700">-</span><span style="color: #0000BB">here</span><span style="color: #007700">;<br />switch ( </span><span style="color: #0000BB">GetDeathstreak</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">) )<br />{<br /> case </span><span style="color: #FF8000">#: code-here;<br /></span><span style="color: #007700">}
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable -->NATIVES<br /><!-- 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">/** <br /> * Returns the deathstreaks of a client. <br /> * <br /> * @param client Client index. <br /> * <br /> * @return deathstreaks. <br /> */ <br /></span><span style="color: #0000BB">native GetDeathstreak</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">); <br /> <br /></span><span style="color: #FF8000">/** <br /> * Sets the deathstreaks of a client. <br /> * <br /> * @param client Client index. <br /> * <br /> * @param integer int number. <br /> */ <br /></span><span style="color: #0000BB">native SetDeathstreak</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">, </span><span style="color: #0000BB">integer</span><span style="color: #007700">);
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable -->Changelog<br /><!-- 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">8</span><span style="color: #007700">/</span><span style="color: #0000BB">17</span><span style="color: #007700">/</span><span style="color: #0000BB">2014 </span><span style="color: #007700">- </span><span style="color: #0000BB">1.0.1 </span><span style="color: #007700">- </span><span style="color: #0000BB">made it workable </span><span style="color: #007700">for </span><span style="color: #0000BB">all games that support sourcemod</span><span style="color: #007700">.<br /></span><span style="color: #0000BB">8</span><span style="color: #007700">/</span><span style="color: #0000BB">17</span><span style="color: #007700">/</span><span style="color: #0000BB">2014 </span><span style="color: #007700">- </span><span style="color: #0000BB">1.0.0 </span><span style="color: #007700">- </span><span style="color: #0000BB">release
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --></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/inc.gif" alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...38;d=1408332114">deathstreaks.inc</a> (749 Bytes)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...?file_id=137035"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1408335482">Get Source</a> (deathstreaks.sp - 2.0 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
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

[ANY] Death Streaks Rewarder/Tracker
Temat rozp. Adminek AMXX.PL, 18.08.2014 04:21
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych