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[L4D1 & L4D2] Console Cmd As Host (Listen Server Only) [v1.0.1 | 31-May-2021]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
LISTEN SERVER ONLY

IMPORTANT NOTE: SourceMod doesn't support Listen Servers.

Description

Usually, plugin commands, when typed from the console, don't work on listen servers because the client index output is 0 (server).

A workaround to this is binding commands with the say command.
e.g.: (in console) "sm_admin" don't works, while "say !sm_admin" works.

This plugin executes plugin commands from the console as if it were the host, by finding its client index.

This is useful for me to test plugins in my dev local server, hope to be useful for others aswell.

Features
  • Convert console commands with client index 0 to their respective client host index.

Cvars

A configuration file named "l4d_console_cmd_listensv.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_console_cmd_listensv_enable "1" 

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

Change Log

Spoiler


Notes
  • This plugin only works on LISTEN SERVER. (local host launched with "-insecure" parameter)

Thank you!

Related Plugins

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

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

Attached Files
File Type: sp Get Plugin or Get Source (l4d_console_cmd_listensv.sp - 10.7 KB)

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