Skocz do zawartości

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

[ANY] Distance Target Filters


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

Napisano 25.03.2014 21:30

<!-- BEGIN TEMPLATE: postbit_external -->
<div><font face="Verdana"><font size="4"><u><b>Description:</b></u></font></font><font face="Verdana"><br /><br />This plugin will allow you to target players within a specified distance from <u><b>YOU</b></u> and including <u><b>YOU</b></u>. This plugin contains both opposite and non-opposite targeting filters. (<b>@distance</b> and <b>@!distance</b>)<br /><br />This plugin was only test on TF2, though it should work on other games. Please let me know if it doesn't.<br /><br />I sincerely apologize if another plugin like this already exists.<br /><br /><u><b><font size="4">Cvars:</font></b></u><br /><br /></font><ul><li><font face="Verdana">sm_distancetarget_version - Displays the current version of the plugin.</font></li>
</ul><br /><br /> <u><b><font face="Arial"><font size="4"><font face="Verdana">Commands:<br /><br /></font></font></font></b></u><div align="left"><ul><li>sm_setdistance &lt;distance&gt; - This will set the distance argument for the filter. You <u><b>must</b></u> set this before using the filter. All distances are in <a href="https://developer.va...wiki/Dimensions" target="_blank">Hammer Units</a> which are considered as inches. (Which are poorly accurate.) However, after playing with it you'll soon get the feel of the measurements. [All admins with <b>GENERIC</b> access can use this.]</li>
</ul><font size="2">The command is also custom to all admins. (i.e. you don't share the same distance value.)<br /></font><br /><b><u>Filter Examples:</u></b><br /><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">1#:<br /><br />sm_setdistance 512<br />sm_slay @distance<br /><br />// Anybody that was within 512 units from you is now dead.<br />// INCLUDING YOU.<br /><br />2#:<br /><br />sm_setdistance 512<br />sm_slay @!distance<br /><br />// Anybody that wasn't within 512 units from you is now dead.<br /><br />3#:<br /><br />sm_setdistance 0<br />sm_slay @distance<br /><br />// This will only target you because you're the only one that's 0 units away from yourself.<br />// In this case, use: '@me'.<br /><br />4#:<br /><br />sm_setdistance 0<br />sm_slay @!distance<br /><br />// This will kill everyone.<br />// In this case, use: '@all'.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><u><b><font size="4"><br /><br />Installation:<br /></font></b></u><ol style="list-style-type: decimal"><li>Download the below <b>'filterdistance.smx'</b> file. (Click: <b>Get Plugin.</b>)</li>
<li>Paste the <b>'filterdistance.smx'</b> file into: addons/sourcemod/plugins</li>
<li>Load the plugin using your preferred methods. (Restart or command.)</li>
</ol><u><b><font size="4">Changelog:</font></b></u><br /><ul><li>25/03/2014 - 1.0.0: Initial Release</li>
<li>25/03/2014 - 1.0.1: Added changes suggested by <a href="https://forums.allie...er.php?u=180597" target="_blank">ddhoward</a></li>
</ul></div><u><b><font face="Arial"><font size="4"><br /><br /></font></font></b></u></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...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=131914"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1395784533">Get Source</a> (filterdistance.sp - 2.1 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