RSSy MYGO.pl Opublikowano Kwiecień 11, 2021 o 07:04 RSSy Udostępnij Opublikowano Kwiecień 11, 2021 o 07:04 About: This plugin allows admins to enable or disable addons for specific players. Features: Adding steam ids to black or white lists to controls players, who allowed to use addons (skins, sounds etc.) on the server. Cvars: PHP Code: // Addons Manager: 0 - Disabled, 1 - Enabled. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_addons_manager_enabled "1" // When Addons manager and eclipse is activated: 0 - Use Black list, 1 - Use White list // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_addons_manager_mode "0" Commands: PHP Code: // Adds or removes to white list Steam ID of player to enable addons when l4d2_addons_manager_mode is 1 sm_addonwhitecontrol <#userid|name> - Writes or removes Steam ID of player of steamsforaddons.txt // Adds or removes to black list Steam ID of player to disable addons when l4d2_addons_manager_mode is 0 sm_addonblackcontrol <#userid|name> - Writes or removes Steam ID of player of steamsagainstaddons.txt Simple controls by admin menu: Add this code to adminmenu_custom.txt in addons/sourcemod/configs folder. PHP Code: "Player Addon White list control" { "cmd" "sm_addonwhitecontrol #1" "admin" "sm_ban" "execute" "player" "1" { "type" "player" "method" "userid" "title" "Addons White list control" } } "Player Addon Black list control" { "cmd" "sm_addonblackcontrol #1" "admin" "sm_ban" "execute" "player" "1" { "type" "player" "method" "userid" "title" "Addons Black list control" } } Changelog: PHP Code: 1.0 (11-Apr-2021) - Initial Release. Requirements: [L4D & L4D2] Left 4 DHooks Direct When make this plugin to work, you should set l4d2_addons_eclipse cvar value to 0. Installation: 1. Place l4d2_addonsmanager.smx into your addons/sourcemod/plugins folder. 2. Place steamsagainstaddons.txt and steamsforaddons.txt into your addons/sourcemod/data folder. Attached Files l4d2_addonsmanager.7z (7.6 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi