Skocz do zawartości

[RSS] [ANY*] Custom ServerInfo Text


GameNation

Rekomendowane odpowiedzi

*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)

Przeczytaj cały wpis na stronie AlliedModders

Odnośnik do komentarza
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

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

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

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.