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] Whitelist Map Changer [v1.0.2 | 28-August-2022]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description

This plugin changes the current map to a whitelist one if blacklisted.

Features
  • Allow configuring which maps are blacklisted.
  • Allow configuring which maps are whitelisted.
  • If more than one map is added to the changelevel section, it will be chosen randomly.

Cvars

A configuration file named "l4d_whitelist_maps.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_whitelist_maps_enable "1" 

Data file (data/l4d_whitelist_maps.cfg)
PHP Code:

// Attributes explained:
//  "enable" -> Enable map for changelevel or whitelist check. "0" = Disable, "1" = Enable.
// Notes:
// If more than one map is added to the changelevel section, it will be chosen randomly.

"l4d_whitelist_maps"
{
    
"changelevel"
    
{
        
"l4d2_tank_challenge" "enable" "1"}
    }

    
"whitelist"
    
{
        
"l4d2_tank_challenge"           "enable" "1"}
        
"l4d2_tank_challenge_15_rounds" "enable" "1"}
        
"l4d2_tank_challenge_20_rounds" "enable" "1"}
        
"l4d2_tank_challenge_30_rounds" "enable" "1"}
    }


Admin Commands
  • sm_whitelist_maps_reload => Reload the whitelist maps configs. (z flag required)
  • sm_print_cvars_l4d_whitelist_maps => Print the plugin related cvars and their respective values to the console. (z flag required)

Change Log

Spoiler


Notes
  • Plugin only works on DEDICATED SERVERS.

Thank you!

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

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

Attached Files
File Type: cfg l4d_whitelist_maps.cfg (591 Bytes)
File Type: sp Get Plugin or Get Source (l4d_whitelist_maps.sp - 14.5 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ę...