Server Whitelist Advanced
Based on Server Whitelistv. 1.0.0
Features (Admin Commands) :- <sm_whitelist_exist | say !whitelist_exist> : Tell if the SteamID or IP is present in the currently loaded whitelist.
- <sm_whitelist_add | say !whitelist_add> : Add a SteamID or IP to the whitelist file. If adding a SteamID, you should use double-quotes ("").
- <sm_whitelist_remove | say !whitelist_remove> : Remove a SteamID or IP from the whitelist file. The change is made on map/plugin end (unless whitelist_removeinstant=1), but the loaded whitelist instance is updated instantly. If removing a SteamID, you should use double-quotes ("").
- -----------
- <sm_whitelist_reload | say !whitelist_reload> : Reloads the whitelist file.
- <sm_whitelist_rewrite | say !whitelist_rewrite> : Rewrites the whitelist file to remove SteamId/IPs waiting for map end to be removed. No need if whitelist_removeinstant = 1.
- <sm_whitelist_list | say !whitelist_list> : List all SteamIDs and IPs in the whitelist file.
- IPs handling.
- Possibility to remove from the text file a SteamID/IP.
- Uses a trie rather than an array :
- Dynamic size (not fixed at 256).
- Tries have faster lookup time; meaning faster joining (should be a notable change with thousands of IPs / SteamIDs thought). See this if you don't know anything.
- Since I'm using a trie, using sm_whitelist_list reads from the file rather than the loaded whitelist, since trie cannot be iterated... .
- Possibility to have different whitelist files and load the one you want. Just change the appropriate ConVar.
- I did contact StevoTVR to ask him if he wanted to update his plugin, and he didn't bother reply (> week) so I decided to make the changes requested in his thread.
- If you're under linux, you may need to have writing privilege so you can create another file in addonssourcemodconfigs folder.
- When executing the plugin, if you don't have the file, it will be automaticly created in addonssourcemodconfigs folder.
- StevoTVR : Initial idea.
- 1.0.0 Initial release. (01-11-2012)
- None at the moment. You're free to suggest things .
Wyświetl pełny artykuł