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

[ANY] Chat-Processor Tags (Replacement for Custom Chat Colors)


  • 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 24.09.2016 02:25

<div><div align="center"><br /><font size="4"><b>Chat-Processor Tags</b></font><br /></div><br /><font size="3"><b>About Chat-Processor Tags:</b></font><br />I'll start off by apologizing for the delay. This plugin has been technically ready for release for a week or two now. It was, on my part a result of laziness caused by my ADHD, combined with some internal debate on whether or not to actually release this publicly yet or to keep it private for my server. I chose to release it. <br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Backstory on how this plugin was created</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;">Chat-Processor Tags started life out as just a standard copy of <a href="https://forums.allie...r.php?u=150845"target="_blank">Dr. McKay</a>'s wonderful <a href="https://forums.alliedmods.net/showthread.php?t=186695" target="_blank">Custom Chat Colors</a> plugin. After a once-over to update the code to use new syntax, some minor modifications were made to the plugin to have it require Redwerewolf's <a href="https://forums.alliedmods.net/showthread.php?t=286913" target="_blank">Chat-Processor</a> plugin as well as the ColorVariables.inc include file <i><sup>(<a href="https://github.com/404UserNotFound/Chat-Processor-Tags/blob/master/scripting/include/colorvariables.inc" target="_blank">specifically this new syntax version that was updated by Redwerewolf</a>)</sup></i>. The easiest part of those modifications was converting how the config file was read, and how the information from the file was being used in formatting the message and the player's name.<br /><br />I also started heavily screwing around with using CPrintToChat to send the chat message to the recipients and eventually after a lot of back and forth with Redwerewolf and Pelipoika and even here, I was able to modify the way chat messages were sent to clients, and I successfully bypassed the 64 character maximum name length restriction as well which allowed for longer and/or multicolored chat tags to be used without a majority of the player's name being cut off by the maxlength limit.</div>
</div>
</div><br /><br />So what's the difference between Chat-Processor Tags and Custom Chat Colors? Simple, longer chat tags, as well as the capability to use multiple color trie values from ColorVariables.inc within one tag (meaning multicolored chat tags!). Here's an example:<br /><img src="http://i.imgur.com/lovaIS3.png"border="0" alt="" /><br /><br /><br /><font size="3"><b><font color="DarkRed">[<font color="Red">!</font>]</font> Requirements/Dependencies:</b></font><br /><b>To run this plugin:</b><br />You'll need the <a href="https://forums.alliedmods.net/showthread.php?t=286913" target="_blank">Chat-Processor</a> plugin.<br /><br /><b>To compile your own build:</b><br />You'll still need the <a href="https://forums.alliedmods.net/showthread.php?t=286913" target="_blank">Chat-Processor</a> plugin, but you'll also need <a href="https://github.com/Drixevel/Chat-Processor/blob/master/scripting/include/colorvariables.inc" target="_blank">Redwerewolf's syntax-updated ColorVariables.inc</a> file. Not only have I just linked to that .inc file, but I've also attached it to this post, and pushed it to my CPT Git. And of course, Redwerewolf does has a copy in his Chat-Processor Git.<br /><br /><br /><font size="3"><b>Commands:</b></font><br />There's only one command in this plugin, <b>sm_reloadtags</b>. That'll reload your config file and allow your changes to show ingame.<br /><br />You can override access to the command via your &quot;admin_overrides.cfg&quot; file. Just add in <font face="Courier New"><font color="DarkSlateGray">&quot;sm_reloadtags&quot; &quot;flag&quot;</font></font>. Just replace the <font face="Courier New"><font color="DarkSlateGray">&quot;flag&quot;</font></font> bit with whatever flag you want to restrict it to, i.e. <font face="Courier New"><font color="DarkSlateGray">&quot;z&quot;</font></font> or <font face="Courier New"><font color="DarkSlateGray">&quot;b&quot;</font></font>.<br /><br /><br /><font size="3"><b>Convars:</b></font><br />No real convars here aside from <b>sm_cpt_version</b>, the standard version convar.<br /><br /><br /><font size="3"><b>Installation Instructions:</b></font><ol style="list-style-type: decimal"><li>Download the plugin (available via Github)</li>
<li>Extract the files to your server. They're already in the correct directories on Github</li>
<li>rcon sm plugins load chat-processor-tags</li>
<li>???</li>
<li>Profit!</li>
</ol><br /><br /><font size="3"><b>Config File Usage Instructions:</b></font><br />Chat-Processor Tags utilizes the same config file-based system that Custom Chat Colors used, and converting your Custom Chat Colors config over to work with Chat-Processor Tags is incredibly simple. All you have to do is edit custom-chatcolors.cfg and change &quot;admin-colors&quot; to &quot;chat_processor_tags&quot;, and you're done!<br /><br />If you're still stumped, <b>please check out <a href="https://github.com/4...ster/README.md"target="_blank">the README file on the page for the Chat-Processor Tags github repo</a></b>. I go indepth on how to use the config file there. It's pretty much the same as Custom Chat Colors. I even explain how to convert your Custom Chat Colors config over into a Chat-Processor-Tags config on the README.<br /><br /><br /><font size="3"><b>Known Bugs:</b></font><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Missing chat flags</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;">Currently, the only known bug that I know about is that chat messages are not properly chatflag'd and prefix'd, meaning you most likely won't see chat prefixes like (TEAM), *SPEC*, *DEAD* or (Coach). I have a version of the plugin with the chat flags properly set up, but I discovered there was a minor bug with that version where every chat message was being flagged as TF_Chat_Coach and given the &quot;(Coach)&quot; prefix for some reason. Redwerewolf and I are working on figuring out what's causing that, so chatflags will be a later addition.</div>
</div>
</div><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>May not work fully in CS:GO</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;">Oh, also, this maaay not work in CS:GO properly. I'm not sure if CS:GO would be able to display any colors that are added into the &quot;tag&quot; line for an entry. I do know that there are engine codes that CS:GO has for various colors as well....perhaps using the actual colorvariables &quot;{engine1}&quot;, &quot;{engine2}&quot;, etc lines in the &quot;tag&quot; line would work for multicolors in CS:GO?</div>
</div>
</div><br /><br />Basically, I just haven't tested this out in CS:GO yet because I haven't started up my CS:GO SourceMod sandbox server yet. Once I do, I will look into the engine codes for CS:GO and see if I can set up an easy letter-based system for CS:GO kinda like the existing T/G/O codes for team-colored, green and olive.[/SPOILER]<br /><br /><br /><font size="3"><b>Version History:</b></font><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Version History</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><u>1.0</u></b><ul><li>Initial release</li>
</ul></div>
</div>
</div><br /><br /><br /><font size="3"><b>Credits:</b></font><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Credits!</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><b>Dr. McKay</b> - Created the Custom Chat Colors plugin. Chat-Processor Tags wouldn't exist without him.</li>
<li><b>Redwerewolf</b> - Helped me figure a lot of things out to make this work, and he created Chat-Processor which is why I decided to create this.</li>
<li><b>Pelipoika</b> - Helped me so much with many of the silly beginner questions I had.</li>
<li><b>Everyone here who helped me</b> - Too many names to list, I had help with various things from a lot of people here.</li>
</ul></div>
</div>
</div><br /><br /><br /><font size="3"><b>Problems? Suggestions?</b></font><br />There shouldn't be any errors or bugs in this plugin, but if you do happen to find any, please let me know on this thread and I'll try my best to correct the issues! And as well, if you have any suggestions for ways to rework my code, or suggestions of new things to add, let me know!<br /><br /><br /><div align="center"><a href="https://github.com/4...Processor-Tags"target="_blank"><img src="http://www.unfgaming.net/images/button_downloadongithub.png" border="0" alt="" /></a></div></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/cfg.gif"alt="File Type: cfg" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...or-tags.cfg</a>(5.8 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...51"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1474678450">GetSource</a> (chat-processor-tags.sp - 19.9 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/inc.gif"alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...or-tags.inc</a>(4.7 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/inc.gif"alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...riables.inc</a>(32.3 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...or-tags.smx</a>(24.2 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