Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

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


owner_2019
 Udostępnij

Rekomendowane odpowiedzi

Full credit to FLOOR_MASTER for the original code found here: https://forums.alliedmods.net/showthread.php?t=73779

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.

Cvars
  • sm_scr_server (default "0")
    • When non-zero, this game server becomes the Server Chat Relay server
  • sm_scr_relaysay (default "1")
    • 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.)
  • sm_scr_ip (default "127.0.0.1")
    • IP of the Server Chat Relay server (ignored when sm_scr_server is 0)
  • sm_scr_port (default "51000")
    • Port of the Server Chat Relay server
  • sm_scr_tag (default "Server 1")
    • Tag to prefix messages broadcast from this server
  • sm_scr_clients_file (default "scr_clients.txt")
    • The text file containing a list of allowed client IPs
  • sm_scr_blacklist_file (default "scr_textblacklist.txt")
    • The text file containing a list of text that will not be broadcast

Commands
  • !bc [text]
    • Broadcast the specified text to all servers. This is useful if sm_scr_relaysay is 0. Available to all players.

Installation Notes / Dependencies
  • This plugin depends on the Socket Extension being installed. Please install this first.
  • 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.
  • This has only been tested on CS:GO.
  • Online compile DOES NOT WORK due to socket requirement. Attached is a compiled 1.7.3 smx if you'd rather not self compile.

Installation Steps
  1. Install the Socket Extension on all servers
  2. Copy scr.smx to the SourceMod plugins directory on each server. (e.x csgo\addons\sourcemod\plugins)
  3. 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. csgo\cfg\sourcemod\plugin.scr.cfg)
  4. Modify the cfg file on the main server to have sm_scr_server set to 1.
  5. Modify the cfg files on the dependent servers to have sm_scr_ip and sm_scr_port to the proper values.
  6. Start the Relay server (whichever server has sm_scr_server set to 1).
  7. Start all dependent servers.

scr_clients.txt and scr_textblacklist.txt
Both files need to be placed in the root of your mod directory, or set the cvar to go through folders. (e.x. csgo\scr_clients.txt)

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.

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 "rtv" and "nominate" should be placed in this file so those do not get sent when used without an exclamation point.

Version History / Changelog
  • 5/22/2016 -v0.4 (First revision by Cheese)
    • Added ability to blacklist text that you don't want broadcast
    • Resolved issue where blank lines in CSGO would be sent across the servers

Attached Files
File Type: sp Get Plugin or Get Source (scr.sp - 10.6 KB)
File Type: smx scr.smx (9.5 KB)
File Type: cfg plugin.scr.cfg (986 Bytes)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...