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

RSS[ANY] Custom ServerInfo Text


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
NOTE: Although this plugin would work on any mod, there's currently only gamedata for TF2. Pull requests welcome!

This plugin allows for customization of the server info text that's sent to clients each time they connect.

68747470733a2f2f692e696d6775722e636f6d2f

Format:
  • Values are inserted with printf format specifiers.
  • Since this plugin does not modify the internal snprintf call at all, you have the following values at your disposal (in this order):
    [ Game description (%s), Map name (%s), Current players (%d), Max players (%d), Build number (%d), Server number (%d) ]
  • Using less values than those available is okay (e.g. omitting the last specifier for server number).
  • String values can be skipped using "%.s".

CVars:
  • serverinfotext_version - plugin version

Dependencies:
Installation:
  • Make sure you have Source Scramble installed.
  • Place the plugin in sourcemod/plugins and the gamedata file in sourcemod/gamedata.
  • Create a file named infotext.txt in sourcemod/configs with your custom text. An example config is provided below.
  • Load the plugin as normal. Plugin must be reloaded for config changes to take effect.

Thanks to Zabaniya / Suza for teaching me how to use Source Scramble properly.

Download plugin (serverinfotext.smx)
Download gamedata (serverinfotext.txt)
Download example config (infotext.txt)

View source (serverinfotext.sp)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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