Raised This Month: $12 Target: $400
 3% 

[L4D2] Addons Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author
magicboyman2021
Junior Member
Join Date: Apr 2021
Plugin ID:
7595
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Disables or enables addons for specific players.
    Old 04-11-2021 , 03:04   [L4D2] Addons Manager
    Reply With Quote #1

    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.
    When using Black list, that enables addons for all, except for Steam ID players in black list in steamsagainstaddons.txt.
    When using White list, that enables addons only for Steam ID players in white list in steamsaforaddons.txt.

    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
    To 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
    File Type: 7z l4d2_addonsmanager.7z (7.6 KB, 620 views)

    Last edited by magicboyman2021; 04-11-2021 at 04:33.
    magicboyman2021 is offline
    dahyun4220
    Member
    Join Date: Sep 2021
    Old 09-20-2021 , 10:47   Re: [L4D2] Addons Manager
    Reply With Quote #2

    Can you deactivate everyone except the administrator?
    dahyun4220 is offline
    magicboyman2021
    Junior Member
    Join Date: Apr 2021
    Old 09-28-2021 , 06:04   Re: [L4D2] Addons Manager
    Reply With Quote #3

    Quote:
    Originally Posted by dahyun4220 View Post
    Can you deactivate everyone except the administrator?
    You can deactivate addons for everyone except for admins, go to steamsforaddons.txt file located in sourcemod/data folder, put Steam IDs of admins and save te file. Set l4d2_addons_eclipse cvar value to 0 and make sure when Left 4 DHooks Direct plugin is running. If you don't have file steamsforaddons.txt, create there.

    Last edited by magicboyman2021; 09-28-2021 at 06:05.
    magicboyman2021 is offline
    Eyedol
    Junior Member
    Join Date: Jul 2018
    Old 11-04-2021 , 18:18   Re: [L4D2] Addons Manager
    Reply With Quote #4

    hi, i would like to ask if this affects the server as i want to run certain addons on my server but have the player addons disabled.
    Eyedol is offline
    magicboyman2021
    Junior Member
    Join Date: Apr 2021
    Old 11-17-2021 , 06:01   Re: [L4D2] Addons Manager
    Reply With Quote #5

    Quote:
    Originally Posted by Eyedol View Post
    hi, i would like to ask if this affects the server as i want to run certain addons on my server but have the player addons disabled.
    This plugin can only disable all addons for certain players or enables. If you playing in custom campaigns but disable addons, it conflicts with custom maps where is few parts of the addon campaign.
    magicboyman2021 is offline
    GoGetSomeSleep
    Senior Member
    Join Date: Dec 2018
    Location: Miami/Florida
    Old 12-06-2022 , 02:14   Re: [L4D2] Addons Manager
    Reply With Quote #6

    can you add ADMFLAG_GENERIC flag to always active addons?
    GoGetSomeSleep is offline
    Mr.Alex18
    New Member
    Join Date: Jan 2023
    Old 01-12-2023 , 22:16   Re: [L4D2] Addons Manager
    Reply With Quote #7

    hi, I would like to ask if it is posible to make any addon with script work into the sv, either vs vanilla or zonemod, because it only works in campaign before the zone config loads
    for example: a death animation addon script; it only works in campaign but it doesn't in zone config
    Mr.Alex18 is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 01-13-2023 , 04:52   Re: [L4D2] Addons Manager
    Reply With Quote #8

    How about L4D1?
    __________________

    Last edited by HarryPotter; 01-13-2023 at 04:52.
    HarryPotter is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:35.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode