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

TOGs Clan Tags


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

Napisano 05.04.2015 01:56

<div><b><font size="4">Description</font></b><br />This plugin was made per <a href="https://forums.allie...d.php?t=260943"target="_blank">request from secondtimesold</a>. It is a complete rewrite of the plugin he references.<br /><br />This plugin is fully customizable. You can make as many setups as desired, and have as many kinds of configurations as desired (all through a config file). The config file is fully explained inside the file itself, but can also be found below.<br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Default .cfg file</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;"><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">//////////////////////////////////////////////////////////////////<br />//<br />// SAMPLE SETUP:<br />//<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Title&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;- This can be anything. I suggest making it something indicating what the setup is for.<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;INPUT&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;- There are 3 kinds of inputs. See below.<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;tag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;[SOME TAG]&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;- Tag.<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />//<br />//////////////////////////////////////////////////////////////////<br />//<br />// INPUTS AND ORDER OF OPERATION:<br />//<br />// The player will get the first tag that matches them. So, a general order of setups is: Bot setup -&gt; Steam ID setups -&gt; group setups.<br />//<br />// BOT: This setup will apply to all bots, and only to bots.<br />//<br />// Steam ID (STEAM_X:X:XXXXXXX format): This will apply only to the player whose steam ID it is. <br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Note: The plugin checks both &quot;STEAM_0&quot; and &quot;STEAM_1&quot; (steam universe 0 and 1), so if you put the wrong one in, it still works.<br />//<br />// Groups: This is a single, multiple, or multiple sets of admin flags.<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.g. &quot;a&quot; requires players to have the &quot;a&quot; flag to be considered a match<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.g. &quot;at&quot; requires players to have BOTH the &quot;a&quot; and &quot;t&quot; flags to be considered a match<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.g. &quot;a;t&quot; requires players to have EITHER the &quot;a&quot; OR &quot;t&quot; flags to be considered a match<br />//&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.g. &quot;at;b&quot; requires players to have EITHER: BOTH the &quot;a&quot; and &quot;t&quot; flags, OR the &quot;b&quot; flag to be considered a match<br />//<br />//////////////////////////////////////////////////////////////////<br />// Note: Do not change the word &quot;Setups&quot; in the line below, else the plugin will not read this file.<br />&quot;Setups&quot;<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Bot setup&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;BOT&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;tag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;[BOT TAG]&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Some player&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;STEAM_0:1:1234567&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;tag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;[SOME TAG]&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Some guy&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;STEAM_0:1:9876554&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;tag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;[ANOTHER TAG]&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Admin Tag&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;b&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;tag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;[ADMIN]&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;VIP Group&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;aost&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;tag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;[VIP]&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Some other tag&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;flag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;a;st&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;tag&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;[MEMBER]&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}</code><hr />
</div></div>
</div>
</div><br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>CVars</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 /><b>togsclantags_admflag</b> - Admin flag(s) required for using the admin command to recheck everyone.<br /><br /><b>togsclantags_bots</b> - Do bots get tags? (1 = yes, 0 = no)<br /><br /><b>togsclantags_enforetags</b> - If no matching setup is found, should their tag be forced to be blank? (1 = blank, 0 = allow their own clan tags).<br /></div>
</div>
</div><br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Changelog</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 />04/04/15 (v1.0)<ul><li>Initial Release to AM</li>
</ul></div>
</div>
</div><br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Installation</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;"><ul><li>togsclantags.smx to /addons/sourcemod/plugins/ folder.</li>
<li>togsclantags.cfg to /addons/sourcemod/configs/ folder.</li>
<li>Configure your setups in the cfg file, then load plugin and you're set!</li>
</ul></div>
</div>
</div><br /><br /><a href="http://www.gametrack...rt=&#38;order="target="_blank"><b><i>Servers using this plugin</i></b></a><br /><a href="http://www.sourcemod.net/plugins.php?cat=0&amp;mod=-1&amp;title=&amp;author=thatoneguy&amp;description=&amp;search=1" target="_blank"><i><b>&gt;&gt;&gt; Click here to check out my other public plugins (mostly older) &lt;&lt;&lt;</b></i></a><br /><br />If you enjoy this plugin, I'm always open to donations (link in signature)! Either way, enjoy!</div>

Wyświetl pełny artykuł




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

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