Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[TF2] tWhitelistUpdater v0.1.0 (2011-11-06)


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 490
  • Lokalizacja:AMXX.PL
Offline

Napisano 06.11.2011 12:08

This plugin generates item whitelists for tournament mode.

It does this every time the plugin starts (restart the server, server is updating, server starts, plugin starts, whitelists get updated).

This plugin supports updating itself using the Updater plugin, which is highly recommended for absolute laziness. Thank GoD-Tony!


Configuration
Quote: Whitelist File Format
These need to be placed here: sourcemod/configs/whitelists/<your-whitelist>.ini
A whitelist config is basically an ini-like file looking like this:
Code: [Global]
Header=ETF2L Season 10, Full, all allowed
AllowWeaponSets=0
AllowHats=1
AllowActionItems=1
AllowNoiseMaker=1
AllowWeaponSkins=1
MinimalOutput=0

[Allowed]
The Blutsauger
The Crusader's Crossbow
The Kritzkrieg
The Ubersaw

[ForceBlock]
The Original Quote: Global
The Global section allows you to tweak the basic settings for the generator:
  • Header
    Use this to specify a custom Header text for the generated whitelist file
  • AllowWeaponSets
    If all weapons of a set are allowed and this is set to 0, the corresponding hats will be blocked. This allows blocking of set attributes.
  • AllowHats
    Set this to 0 to block all hats and misc items.
  • AllowActionItems
    Taunts, Gifts etc are considered Action Items
  • AllowNoiseMaker
    Block Noisemakers.
  • AllowWeaponSkins
    Allow weapons that just have a different look.
  • Minimal Output
    By default unlisted items are being blocked. By setting this to 1 the generated whitelist won't explicitly list them as blocked.
Quote: Allowed
By default all weapons are blocked. Specify allowed ones in this section. Quote: ForceBlock
The ForceBlock section allows to block weapons that would otherwise be enabled by the given config. E.g. The Original is basically a skin for the Rocket Launcher, but it is blocked in ETF2L Season 10.
ConVars
Quote:
  • sm_twhitelistupdater_auto (Default: 1)
    Automatically updates all whitelists on server start if enabled

Some configurations don't specify some of the global settings. You can override empty fields with the following cvars:

Quote:
  • sm_twhitelistupdater_weaponsets (Default: 0)
  • sm_twhitelistupdater_hats (Default: 1)
  • sm_twhitelistupdater_actionitems (Default: 1)
  • sm_twhitelistupdater_noisemaker (Default: 1)
  • sm_twhitelistupdater_weaponskins (Default: 1)
Issues:
Quote: Weapon Skins
These can't be detected from the items_game.txt file provided by the server, but have to be specified in a separate config file. You don't need to worry about that as long as you have the Updater plugin installed and someone told me about the new weapon skins :wink:

Compilation
To compile this plugin, you'll need the updater include. This is why the "Get Plugin" link below won't work either.
Attached Files Dołączona grafika Get Plugin or Get Source (tWhitelistUpdater.sp - 29.7 KB) Dołączona grafika tWhitelistUpdater-0.1.0.zip (23.8 KB, N/A views)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych