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.
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)
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 Get Plugin or Get Source (tWhitelistUpdater.sp - 29.7 KB) tWhitelistUpdater-0.1.0.zip (23.8 KB, N/A views)
Wyświetl pełny artykuł