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

[L4D2] Helms Deep Sourcemod Enabler


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:
Allows for the running of the helms deep reborn map on a sourcemod server and responds to built in commands

Installation:
put l4d2_helmsdeep.smx into /addons/sourcemod/plugins

Credits:
everyone who helped me in the sourcemod discord server

The author of the map placed code inside the .vpk in a .nut file with the following code that would check if sourcemod was running and kick everyone who tried to join
Code:

        if ( !HelmsServerInfo.checked_plugins )
        {
                local metamodVersion = Convars.GetStr("metamod_version");
                local sourcemodVersion = Convars.GetStr("sourcemod_version");
       
                if ( !metamodVersion && !sourcemodVersion )
                        HelmsServerInfo.has_plugins = false;
                else
                        HelmsServerInfo.has_plugins = true;
               
                HelmsServerInfo.checked_plugins = true;
        }
       
        if ( HelmsServerInfo.has_plugins )
        {
                foreach( player in Players.Humans() )
                {
                        SendToServerConsole( "kickid " + player.GetSteamID() + " " + "This server is using plugins, please join a different server" );
                }
        }

what this plugin does is intercept the kickid command (with that matching string) and stop it from being used and allowing all players to join

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_helmsdeep.sp - 2.0 KB)
File Type: smx l4d2_helmsdeep.smx (4.9 KB)

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