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

[(?) CSGO / CSS] Advanced Tag Manager (Chat Only)


  • 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 29.01.2024 23:29

<div><font size="+1"><b>History</b></font><br />This plugin was originally built on <a href="https://forums.allie...d.php?t=299733"target="_blank" rel="noopener">this </a>, but I modified it for my personal needs and added more functionality, making it a completely different plugin now.<br /><font size="+1"><b>Description</b></font><br />This plugin adds custom tags based on admin flags and/or based on SteamID's. <br />It also has support for LevelsRank and it can add the Translation Phrase of the corresponding rank from LR before the tag. (Example: [Silver I]yourcustomtag yourname: message)<br />You should read the plugin's beggining to understand some key-factors and also if you want to enable the support for LevelsRank<br /><font size="+1"><b>ConVars and Commands</b></font><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</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 /><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">//&nbsp;This&nbsp;file&nbsp;was&nbsp;auto-generated&nbsp;by&nbsp;SourceMod&nbsp;(v1.11.0.6952)
<br />//&nbsp;ConVars&nbsp;for&nbsp;plugin&nbsp;"advanced-tagmanager.smx"
<br />
<br />
<br />
<br />//&nbsp;Enable&nbsp;or&nbsp;disable&nbsp;the&nbsp;plugin&nbsp;menu
<br />//&nbsp;-
<br />//&nbsp;Default:&nbsp;"1"
<br />//&nbsp;Minimum:&nbsp;"0.000000"
<br />//&nbsp;Maximum:&nbsp;"1.000000"
<br /></span><span style="color: #0000BB">sm_advtm_enable&nbsp;</span><span style="color: #DD0000">"1"
<br />
<br /></span><span style="color: #FF8000">//&nbsp;THIS&nbsp;CVAR&nbsp;WONT&nbsp;EXIST&nbsp;IF&nbsp;YOU&nbsp;DO&nbsp;NOT&nbsp;ENABLE&nbsp;LEVELSRANK&nbsp;SUPPORT&nbsp;IN&nbsp;THE&nbsp;PLUGIN
<br />//&nbsp;Try&nbsp;to&nbsp;fit&nbsp;rank,&nbsp;tag&nbsp;and&nbsp;name&nbsp;before&nbsp;the&nbsp;':'&nbsp;(only&nbsp;affects&nbsp;clients&nbsp;that&nbsp;have&nbsp;both&nbsp;a&nbsp;rank&nbsp;and&nbsp;a&nbsp;tag)
<br />//&nbsp;-
<br />//&nbsp;Default:&nbsp;"1"
<br />//&nbsp;Minimum:&nbsp;"0.000000"
<br />//&nbsp;Maximum:&nbsp;"1.000000"
<br /></span><span style="color: #0000BB">sm_advtm_trim&nbsp;</span><span style="color: #DD0000">"1"
<br />
<br /></span><span style="color: #FF8000">//&nbsp;And&nbsp;commands
<br /></span><span style="color: #0000BB">sm_advtm_reload</span><span style="color: #007700">:&nbsp;</span><span style="color: #DD0000">"Reloads&nbsp;all&nbsp;of&nbsp;the&nbsp;configs&nbsp;and&nbsp;reassigns&nbsp;tags"
<br /></span><span style="color: #0000BB">sm_advtm_getcookie&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">/</span><span style="color: #0000BB">userid</span><span style="color: #007700">&gt;:&nbsp;</span><span style="color: #DD0000">"Get&nbsp;the&nbsp;advtm_chattag&nbsp;cookie&nbsp;of&nbsp;a&nbsp;client"
<br /></span><span style="color: #0000BB">sm_advtm_setcookie&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">/</span><span style="color: #0000BB">userid</span><span style="color: #007700">&gt;&nbsp;&lt;</span><span style="color: #0000BB">cookie</span><span style="color: #007700">&gt;:&nbsp;</span><span style="color: #DD0000">"Set&nbsp;the&nbsp;advtm_chattag&nbsp;cookie&nbsp;of&nbsp;a&nbsp;client&nbsp;(dont&nbsp;use&nbsp;unless&nbsp;necessary)"&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></div>
</div>
</div><br /><font size="+1"><b>Changelog</b></font><br /><div style="margin:20px; margin-top:5px; ">
<div class="smallfont" style="margin-bottom:2px">Quote:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2">
<hr />

30.01.2024 (v1.4_29.01.2024)<br /><br />* Initial release.

<hr />
</td>
</tr>
</table>
</div><font size="+1"><b>Installation</b></font><br />Copy and paste the files into your SourceMod folder. If you want to recompile or try to compile for an older version make sure you have all of the dependencies installed.<br /><font size="+1"><b>Dependencies</b></font><ul><li><a href="https://forums.allie....php?p=1820365"target="_blank" rel="noopener">Simple Chat Processor (Redux)</a></li>
<li><a href="https://forums.allie...d.php?t=247770"target="_blank" rel="noopener">MultiColors</a></li>
<li><b>Optional:</b> <a href="https://forums.allie...d.php?t=318782"target="_blank" rel="noopener">LevelsRank</a></li>
</ul><font size="+1"><b>Features to be added</b></font><ul><li> None yet</li>
</ul><font size="+1"><b>Known issues</b></font><ul><li> None </li>
</ul><font size="+1"><b>Important</b></font><ul><li>The config file &quot;advancedtagmanager_simpletags.cfg&quot; should be ranked by the flags required and it should always exist with an entry present, otherwise the plugin will fail; the other two files are optional. It provides a fast and easy configuration by just specifying the flags, but if two flags of the tags are the same or anything else that would make the user get the incorrect flags you must use the &quot;advancedtagmanager_tags.cfg&quot; where you specify the STEAMID2 of the user.</li>
<li>&quot;advancedtagmanager_tags.cfg&quot; will always take priority over &quot;advancedtagmanager_simpletags.cfg&quot; because it is a more targeted way of managing the tag.</li>
<li>If the client's name gets trimmed because of the length of the rank or the tag, either modify the rank from the Translation Phrase of LevelsRank or shorten the tag length, or just enable sm_advtm_trim 1 and it will move the name into the message.</li>
<li>The plugin connects to the LevelsRank database by using SQLite.</li>
<li>If someone can test this on CS:GO and reply if it works it would be great.</li>
</ul><br />I would also love to post pictures if I figure out how xd<br /><font size="+2">Tested on Sourcemod 1.10 and 1.11!</font></div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<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...manager.zip</a>(30.9 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




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

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