RSSy MYGO.pl Opublikowano Sierpień 28, 2022 o 22:44 RSSy Udostępnij Opublikowano Sierpień 28, 2022 o 22:44 Description This plugin changes the current map to a whitelist one if blacklisted. FeaturesAllow 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 1.0.2 (28-August-2022) - Now automatically adds the changelevel maps to the whitelist. 1.0.1 (27-August-2022) - Fixed clients being kicked on mid-game map changes. (thanks "L4D2Noob" for reporting) - Faster and safer checks to change maps. 1.0.0 (25-August-2022) - Initial release. Notes Plugin only works on DEDICATED SERVERS. Thank you! zaviier - for requesting and testing. L4D2Noob - for reporting a bug. 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 l4d_whitelist_maps.cfg (591 Bytes) 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 Więcej opcji udostępniania...
Rekomendowane odpowiedzi