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] Cross-Server Chat


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

Napisano 07.01.2014 00:06

<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="5">Cross-Server Chat</font><br /><br /><font size="4">Description</font><br />This plugin and Python script allows you to chat between any number of servers without actually playing in them. For example, you could connect 3 servers together using this, and then talk with people in the 2nd and 3rd servers while you're in the 1st server.<br /><br /><font size="4">How it Works</font><br />A Python script is provided which acts as the master server to receive all server messages. Each server pings the master server every second, with a payload including all messages that have been sent on this server in the last second, and the master server replies with all messages sent by other servers in the last second.<br /><br /><font size="4">Requirements</font><br />You must install the <a href="https://forums.allie...ad.php?t=129763" target="_blank">SteamTools</a> extension to use this.<br />You must also have access to a server capable of running Python scripts, with an open port that is not in use.<br /><br /><font size="4">ConVars</font><ul><li><i>sm_csc_host</i> (string) (def. &quot;http://YOURHOST.com:8000) - The host and port that the master server Python script resides at.</li>
<li><i>sm_csc_prefix</i> (string) (def. &quot;&quot;) - The prefix to use for sending messages. A blank prefix means that all messages are networked. An example prefix is &quot;#&quot;, which would mean that all messages you want networked must be of the format &quot;#message&quot;, e.g. &quot;#hi hawk&quot;.</li>
</ul><br /><font size="4">Installation</font><ol style="list-style-type: decimal"><li>Install the <a href="https://forums.allie...ad.php?t=129763" target="_blank">SteamTools</a> extension, if you haven't already.</li>
<li>Install the plugin on every game server you want networked. See <a href="https://wiki.alliedm...talling_Plugins" target="_blank">installing plugins</a>.</li>
<li>Install the Python script on the server you want to be the master server.<ol style="list-style-type: decimal"><li>Copy the cross-server-chat.py script to somewhere that you can run it.</li>
<li>Edit it and be sure to change the following:<br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<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">HOST_NAME = 'YOURHOSTNAME.com'<br />PORT_NUMBER = 8000</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></li>
<li>Run it by typing: <!-- BEGIN TEMPLATE: bbcode_code_printable -->
<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">python cross-server-chat.py</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->You may consider running it in a <a href="http://www.gnu.org/s...ual/screen.html" target="_blank">Screen</a> session so that it doesn't get terminated when you close the terminal.</li>
</ol></li>
<li>Restart the game server(s).</li>
</ol><br /><font size="4">Changelog</font><ul><li><u>1.0</u>, Jan 6, 2014<ul><li>Initial version.</li>
</ul></li>
</ul><br /><font size="4">On GitHub</font><br /><a href="https://github.com/D...oss-server-chat" target="_blank">https://github.com/D...-chat</a></div>


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








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<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...38;d=1389049549">cross-server-chat.zip</a> (970 Bytes)


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


<a href="http://www.sourcemod...?file_id=129250"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1389049621">Get Source</a> (cross-server-chat.sp - 6.4 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł




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

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