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

[ANY] Server Chat Relay REDUX v0.4 (Updated 05/22/2016)


  • 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 22.05.2016 08:58

<div>Full credit to FLOOR_MASTER for the original code found here: <a href="https://forums.allie...ad.php?t=73779"target="_blank">https://forums.allie...?t=73779</a><br /><br />I modified this for my own use and figured others may want the changes I made. I intend to maintain this for any issues that may arise and will continue to develop features as I have time. Feel free to ask any questions or make requests in this thread.<br /><br /><u><b><font size="3">Cvars</font></b></u><br /><ul><li><b>sm_scr_server</b> (default &quot;0&quot;)<ul><li>When non-zero, this game server becomes the Server Chat Relay server</li>
</ul></li>
<li><b>sm_scr_relaysay</b> (default &quot;1&quot;)<ul><li>When non-zero, broadcast all say messages from this server (except those that begin with '!' and those listed in the sm_scr_blacklist_file file.)</li>
</ul></li>
<li><b>sm_scr_ip</b> (default &quot;127.0.0.1&quot;)<ul><li>IP of the Server Chat Relay server (ignored when sm_scr_server is 0)</li>
</ul></li>
<li><b>sm_scr_port</b> (default &quot;51000&quot;)<ul><li>Port of the Server Chat Relay server</li>
</ul></li>
<li><b>sm_scr_tag</b> (default &quot;Server 1&quot;)<ul><li>Tag to prefix messages broadcast from this server</li>
</ul></li>
<li><b>sm_scr_clients_file</b> (default &quot;scr_clients.txt&quot;)<ul><li>The text file containing a list of allowed client IPs</li>
</ul></li>
<li><b>sm_scr_blacklist_file</b> (default &quot;scr_textblacklist.txt&quot;)<ul><li>The text file containing a list of text that will not be broadcast</li>
</ul></li>
</ul><br /><u><b><font size="3">Commands</font></b></u><ul><li><b>!bc [text]</b><ul><li>Broadcast the specified text to all servers. This is useful if sm_scr_relaysay is 0. Available to all players.</li>
</ul></li>
</ul><br /><u><b><font size="3">Installation Notes / Dependencies</font></b></u><ul><li>This plugin depends on the <a href="https://forums.allie...=67640?t=67640"target="_blank">Socket Extension</a> being installed. Please install this first.</li>
<li>The initial load of the program may fail with a Socket Error 3. This is expected. Please modify the config files and load the relay server first, then dependent servers.</li>
<li>This has only been tested on CS:GO.</li>
<li>Online compile <b>DOES NOT WORK</b> due to socket requirement. Attached is a compiled 1.7.3 smx if you'd rather not self compile.</li>
</ul><br /><u><b><font size="3">Installation Steps</font></b></u><ol style="list-style-type: decimal"><li>Install the <a href="https://forums.allie...=67640?t=67640"target="_blank">Socket Extension</a> on all servers</li>
<li>Copy scr.smx to the SourceMod plugins directory on each server. (e.x csgoaddonssourcemodplugins)</li>
<li>Download the attached cfg and place in your the SourceMod cfg folder on each server OR let it auto create one on the first load. (located at e.x. csgocfgsourcemodplugin.scr.cfg)</li>
<li>Modify the cfg file on the main server to have sm_scr_server set to 1.</li>
<li>Modify the cfg files on the dependent servers to have sm_scr_ip and sm_scr_port to the proper values.</li>
<li>Start the Relay server (whichever server has sm_scr_server set to 1).</li>
<li>Start all dependent servers.</li>
</ol><br /><u><b><font size="3">scr_clients.txt and scr_textblacklist.txt</font></b></u><br />Both files need to be placed in the root of your mod directory, or set the cvar to go through folders. (e.x. csgoscr_clients.txt)<br /><br />For scr_clients.txt, if the file exists then no servers will be able to relay messages unless they are part of this file. Please put each new server on a new line, just listing the IP address it will be connecting from.<br /><br />For scr_textblacklist.txt, place any words that will trigger a line to not be sent to other servers. All commands that start with ! automatically do not get sent over, so things like &quot;rtv&quot; and &quot;nominate&quot; should be placed in this file so those do not get sent when used without an exclamation point.<br /><br /><u><b><font size="3">Version History / Changelog</font></b></u><ul><li>5/22/2016 -v0.4 (First revision by Cheese)<ul><li>Added ability to blacklist text that you don't want broadcast</li>
<li>Resolved issue where blank lines in CSGO would be sent across the servers</li>
</ul></li>
</ul></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/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...44"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1463903766">GetSource</a> (scr.sp - 10.6 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...66">scr.smx</a>(9.5 KB)


</td>
</tr><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...gin.scr.cfg</a>(986 Bytes)


</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