<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">// This file was auto-generated by SourceMod (v1.11.0.6952)
<br />// ConVars for plugin "advanced-tagmanager.smx"
<br />
<br />
<br />
<br />// Enable or disable the plugin menu
<br />// -
<br />// Default: "1"
<br />// Minimum: "0.000000"
<br />// Maximum: "1.000000"
<br /></span><span style="color: #0000BB">sm_advtm_enable </span><span style="color: #DD0000">"1"
<br />
<br /></span><span style="color: #FF8000">// THIS CVAR WONT EXIST IF YOU DO NOT ENABLE LEVELSRANK SUPPORT IN THE PLUGIN
<br />// Try to fit rank, tag and name before the ':' (only affects clients that have both a rank and a tag)
<br />// -
<br />// Default: "1"
<br />// Minimum: "0.000000"
<br />// Maximum: "1.000000"
<br /></span><span style="color: #0000BB">sm_advtm_trim </span><span style="color: #DD0000">"1"
<br />
<br /></span><span style="color: #FF8000">// And commands
<br /></span><span style="color: #0000BB">sm_advtm_reload</span><span style="color: #007700">: </span><span style="color: #DD0000">"Reloads all of the configs and reassigns tags"
<br /></span><span style="color: #0000BB">sm_advtm_getcookie </span><span style="color: #007700"><</span><span style="color: #0000BB">name</span><span style="color: #007700">/</span><span style="color: #0000BB">userid</span><span style="color: #007700">>: </span><span style="color: #DD0000">"Get the advtm_chattag cookie of a client"
<br /></span><span style="color: #0000BB">sm_advtm_setcookie </span><span style="color: #007700"><</span><span style="color: #0000BB">name</span><span style="color: #007700">/</span><span style="color: #0000BB">userid</span><span style="color: #007700">> <</span><span style="color: #0000BB">cookie</span><span style="color: #007700">>: </span><span style="color: #DD0000">"Set the advtm_chattag cookie of a client (dont use unless necessary)"
<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 "advancedtagmanager_simpletags.cfg" 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 "advancedtagmanager_tags.cfg" where you specify the STEAMID2 of the user.</li>
<li>"advancedtagmanager_tags.cfg" will always take priority over "advancedtagmanager_simpletags.cfg" 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ł
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
![Zdjęcie](https://amxx.pl/uploads/av-1.jpg?_r=0)
[(?) CSGO / CSS] Advanced Tag Manager (Chat Only)
Temat rozp. Adminek AMXX.PL, 29.01.2024 23:29
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych