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

[TF] Super Targeting (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:7179
  • Lokalizacja:AMXX.PL
Offline

Napisano 27.02.2014 18:44

<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="5">Super Targeting</font><br />=========<br /><br />Super Targeting adds in a config for server operators to make their own filter for the ProcessTargetString which is used in many of the SM commands.<br /><br /><font size="4">Future Work</font><br />-----------<br /><br />I plan on adding a few more things to this plugin, which insnese will break the older one.<br /><br />A few that come to mind are:<br /> - Alive<br /> - Conditions<br /><br /><br /><br /><font size="5">Installation &amp; Setup</font><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">SuperTargeting.smx -&gt; Sourcemod/plugins/<br />SuperTargeting.cfg -&gt; Sourcemod/configs/</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="4">Configuration</font><br />------------<br /><br />The format is so:<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">&quot;@&lt;filtername&gt;&quot;<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;text&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&lt;language text&gt;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;team&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&lt;team&gt;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;class&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;&lt;class&gt;&quot;<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Here is what can be put into each one:<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">&lt;filtername&gt; : this can be anything, but i would refrain from making it anything that is already in use. Start it off with an exclamation point (!) to negate the filter<br />&lt;team&gt;&nbsp; : this can be 0 to 3, anything else it will ignore the filter. Set to 0 to ignore the team number.<br />&lt;class&gt; : this is a number from 0 to 9, anything other than that the filter will be ignored.<br />&lt;language text&gt; : This is the text that is printed out when a plugin uses this filter</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->List of all the class/team numbers:<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">Classes:<br />0 : Any Class<br />1 : Scout<br />2 : Sniper<br />3 : Soldier<br />4 : Demoman<br />5 : Medic<br />6 : Heavy<br />7 : Pyro<br />8 : Spy<br />9 : Engineer<br /><br />Teams:<br />0 : Any team<br />1 : Spectator<br />2 : RED<br />3 : BLU</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Below this is an example that will target all scouts<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">&quot;@scout&quot;<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;text&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;all Scouts&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;team&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;class&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;1&quot;<br />}<br />When used it will display: ***** all Scouts.<br />i.e.: [SM] Slayed all Scouts.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="4">Updater</font><br />-----------<br />This plugin doesn't require Updater, but it does support it.<br />to disable Updating on the specific plugin go here: tf/cfg/sourcemod/plugin.SuperTargeting.cfg<br />and change sm_supertargeting_update to 0<br /><br /><font size="4">Credit where it's due</font><br />-----------<br /> - <a href="https://forums.allie...er.php?u=149090" target="_blank">ReFlexPoison</a> : Created the base of the code and most of the filters syntax for the config. <a href="https://forums.alliedmods.net/showthread.php?t=214895" target="_blank">[Class Target Filters]</a><br /> - <a href="https://forums.alliedmods.net/member.php?u=180597" target="_blank">ddhoward</a> : He also made a similar plugin of ReFlexPoison's, it had a few custom filters that I appended onto the config. <a href="https://forums.alliedmods.net/showthread.php?t=226986" target="_blank">[Class Targeting]</a><br /><br /><font size="5">DOWNLOAD</font><br />=========<br />These are all the current version on the main branch in bitbucket.<br /><a href="https://bitbucket.org/MitchDizzle/super-targeting/raw/master/plugins/SuperTargeting.smx" target="_blank"><b><font size="4">PLUGIN</font></b></a><br /><a href="https://bitbucket.org/MitchDizzle/super-targeting/raw/master/configs/SuperTargeting.cfg" target="_blank"><b><font size="4">CONFIG</font></b></a> <font size="1">-right click -&gt; save as...</font><br /><a href="https://bitbucket.org/MitchDizzle/super-targeting/raw/master/scripting/SuperTargeting.sp" target="_blank"><font size="1">SOURCE</font></a></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