Skocz do zawartości

[RSS] [L4D1 & L4D2] Spectators Name Message Queue [v1.0.1 | 15-January-2023]


GameNation

Rekomendowane odpowiedzi

Description

Displays spectators names from time to time, sorted by longest time connected in server.

Made it a long time ago, but I still see some competitive servers using my private version instead.

Useful for competitive servers that has a lot of spectators slots and want to replace a player during AFK or an entire team at the end of the match.

Features
  • Allows enabling/disabling the plugin.
  • Allows configuring the interval that a message is displayed.
  • Public command to output the queue to caller chat.
  • Translations supported.

Cvars

A configuration file named "l4d_specs_msg_queue.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

PHP Code:

// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_specs_msg_queue_enable "1"

// Interval in seconds that the queue message should output to everyone.
// -
// Default: "60.0"
// Minimum: "0.100000"
l4d_specs_msg_queue_timer_interval "60.0" 

Public Commands
  • sm_queue => Shows the current player queue.

Admin Commands
  • sm_print_cvars_l4d_specs_msg_queue => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler

1.0.1 (15-January-2023)
- Public release.

1.0.0 (19-February-2021)
- Private release.


Current Translations
  • en - English
  • es - Spanish
  • pt - Brazilian Portuguese
  • pt_p - Portuguese

Notes
  • The sort is based on the return of the GetClientTime function. (only sorts SPECTATOR and HUMAN players)

Thank you!

Post Reply
  • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

Installation
  • Put the "l4d_specs_msg_queue.phrases.txt" file in your "\addons\sourcemod\translations\" folder.
  • Put the "l4d_specs_msg_queue.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.

Attached Files
File Type: txt l4d_specs_msg_queue.phrases.txt (1.2 KB)
File Type: sp Get Plugin or Get Source (l4d_specs_msg_queue.sp - 11.8 KB)

Przeczytaj cały wpis

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ę.