Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Command Block [v1.1 (08-May-2021)]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Plugin ID:
7622
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blocks specified client commands.
    Old 04-30-2021 , 09:17   [L4D & L4D2] Command Block [v1.1 (08-May-2021)]
    Reply With Quote #1

    .
    Command Block (l4d_command_block) by Mystik Spiral

    Left4Dead2 SourceMod plugin blocks client commands.
    Blocks commands as specified in the ConVar "cb_list".

    By default, the blocked commands are:
    • pause/setpause/unpause: Could be spammed to crash connected clients.
    • jointeam: Could be used to spawn additional bots and other exploits.
    • go_away_from_keyboard: Blocks many different idle exploits, most notably redirecting witch on startle.
      • It is suggested to lower the parameter "director_afk_timeout" since players can no longer manually go idle (Take A Break).
      • In the server.cfg file, set "sm_cvar director_afk_timeout 20", the default is 45.

    The list of commands to block must be comma separated with no spaces.

    Want to contribute code enhancements?
    Create a pull request using this GitHub repository: https://github.com/Mystik-Spiral/l4d_command_block

    Plugin discussion: https://forums.alliedmods.net/showthread.php?t=332223
    .
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_command_block.sp - 553 views - 2.3 KB)
    __________________

    Last edited by Mystik Spiral; 06-14-2021 at 09:31.
    Mystik Spiral is offline
    Mystik Spiral
    Senior Member
    Join Date: Oct 2020
    Location: Orlando, FL
    Old 05-08-2021 , 08:02   Re: [L4D & L4D2] Command Block [v1.1 (08-May-2021)]
    Reply With Quote #2

    New version 1.1 released, see original post for download.

    07-May-2021 v1.1
    - Instead of hardcoded commands, now blocks whatever commands are specified in the "cb_list" ConVar (in the l4d_command_block.cfg file).
    -- The list must be comma separated with no spaces.

    Now you can specify whatever commands you want to block simply by updating the cb_list ConVar in the l4d_command_block.cfg file.

    The default entry for cb_list is:
    pause,setpause,unpause,jointeam,go_away_from_ keyboard
    __________________

    Last edited by Mystik Spiral; 05-08-2021 at 08:04.
    Mystik Spiral is offline
    Wizards
    Junior Member
    Join Date: Oct 2021
    Old 02-15-2022 , 20:11   Re: [L4D & L4D2] Command Block [v1.1 (08-May-2021)]
    Reply With Quote #3

    Quote:
    Originally Posted by Mystik Spiral View Post
    New version 1.1 released, see original post for download.

    07-May-2021 v1.1
    - Instead of hardcoded commands, now blocks whatever commands are specified in the "cb_list" ConVar (in the l4d_command_block.cfg file).
    -- The list must be comma separated with no spaces.

    Now you can specify whatever commands you want to block simply by updating the cb_list ConVar in the l4d_command_block.cfg file.

    The default entry for cb_list is:
    pause,setpause,unpause,jointeam,go_away_from_ keyboard
    Is that can block command "sm plugins list" from clients? I just dont wanna show my plugins list to them.
    And for some reason, the plugin cant exec "l4d_command_block.cfg" file in my sourcemod folder. Im try to recompile .sp file but that error still arrive
    Wizards is offline
    laurauwu
    Member
    Join Date: Feb 2022
    Location: Curitiba / PR - Brazil
    Old 03-11-2022 , 15:01   Re: [L4D & L4D2] Command Block [v1.1 (08-May-2021)]
    Reply With Quote #4

    Code:
    L 03/11/2022 - 16:59:59: [SM] Blaming: commandblock.smx
    L 03/11/2022 - 16:59:59: [SM] Call stack trace:
    L 03/11/2022 - 16:59:59: [SM]   [0] PrintToServer
    L 03/11/2022 - 16:59:59: [SM]   [1] Line 67, commandblock.sp::CommandBlock
    L 03/11/2022 - 16:59:59: [SM] Exception reported: Client index 7 is invalid (arg 3)
    L 03/11/2022 - 16:59:59: [SM] Blaming: commandblock.smx
    L 03/11/2022 - 16:59:59: [SM] Call stack trace:
    L 03/11/2022 - 16:59:59: [SM]   [0] PrintToServer
    L 03/11/2022 - 16:59:59: [SM]   [1] Line 67, commandblock.sp::CommandBlock
    L 03/11/2022 - 16:59:59: [SM] Exception reported: Client index 7 is invalid (arg 3)
    L 03/11/2022 - 16:59:59: [SM] Blaming: commandblock.smx
    L 03/11/2022 - 16:59:59: [SM] Call stack trace:
    L 03/11/2022 - 16:59:59: [SM]   [0] PrintToServer
    L 03/11/2022 - 16:59:59: [SM]   [1] Line 67, commandblock.sp::CommandBlock
    L 03/11/2022 - 16:59:59: [SM] Exception reported: Client index 7 is invalid (arg 3)
    L 03/11/2022 - 16:59:59: [SM] Blaming: commandblock.smx
    L 03/11/2022 - 16:59:59: [SM] Call stack trace:
    L 03/11/2022 - 16:59:59: [SM]   [0] PrintToServer
    L 03/11/2022 - 16:59:59: [SM]   [1] Line 67, commandblock.sp::CommandBlock
    L 03/11/2022 - 16:59:59: [SM] Exception reported: Client index 7 is invalid (arg 3)
    L 03/11/2022 - 16:59:59: [SM] Blaming: commandblock.smx
    L 03/11/2022 - 16:59:59: [SM] Call stack trace:
    L 03/11/2022 - 16:59:59: [SM]   [0] PrintToServer
    L 03/11/2022 - 16:59:59: [SM]   [1] Line 67, commandblock.sp::CommandBlock
    L 03/11/2022 - 16:59:59: [SM] Exception reported: Client index 7 is invalid (arg 3)
    L 03/11/2022 - 16:59:59: [SM] Blaming: commandblock.smx
    L 03/11/2022 - 16:59:59: [SM] Call stack trace:
    L 03/11/2022 - 16:59:59: [SM]   [0] PrintToServer
    L 03/11/2022 - 16:59:59: [SM]   [1] Line 67, commandblock.sp::CommandBlock
    L 03/11/2022 - 16:59:59: [SM] Exception reported: Client index 7 is invalid (arg 3)
    L 03/11/2022 - 16:59:59: [SM] Blaming: commandblock.smx
    L 03/11/2022 - 16:59:59: [SM] Call stack trace:
    L 03/11/2022 - 16:59:59: [SM]   [0] PrintToServer
    L 03/11/2022 - 16:59:59: [SM]   [1] Line 67, commandblock.sp::CommandBlock
    L 03/11/2022 - 16:59:59: [SM] Exception reported: Client index 7 is invalid (arg 3)
    L 03/11/2022 - 16:59:59: [SM] Blaming: commandblock.smx
    L 03/11/2022 - 16:59:59: [SM] Call stack trace:

    I believe this is causing lag on my server

    Last edited by laurauwu; 03-11-2022 at 15:01.
    laurauwu is offline
    LinLinLin
    Senior Member
    Join Date: Sep 2021
    Old 08-15-2022 , 22:07   Re: [L4D & L4D2] Command Block [v1.1 (08-May-2021)]
    Reply With Quote #5

    it seem only work in local server,i put this plugins in my remote server,it not work.
    LinLinLin is offline
    JLmelenchon
    Senior Member
    Join Date: Mar 2019
    Old 08-15-2022 , 22:50   Re: [L4D & L4D2] Command Block [v1.1 (08-May-2021)]
    Reply With Quote #6

    You can not block commands on left 4 dead 2, not anymore at least.
    JLmelenchon 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 16:35.


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