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

[ANY] Simple Command Blocker


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Plugin ID:
5415
Plugin Version:
1.2.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Block Server's unwanted commands in 3 differents way.
    Old 11-16-2016 , 12:10   [ANY] Simple Command Blocker
    Reply With Quote #1

    Description:
    Well, You might think that this plugin i duplicate but as far as i searched this is not!
    there is also another command blocker by pRED* that adds cheat flag to commands for blocking them but in this plugin it adds them as a sourcemod command and deny any requests to those commands.
    NOTE: Download the new version 1.2.3 for new features.
    Commands (Do Not Add to server.cfg):
    sm_blockcmd #Command
    - This will block the command from being used by anyone and will also report Name + SteamID of anyone who tries to use it.
    sm_kickcmd #Command
    - This will block the command from being used by anyone and will kick anyone tries to use the command (will also report who used the command).
    sm_bancmd #Command
    - This will block the command from being used by anyone and will ban permanently anyone tries to use the command.
    sm_slaycmd #Command
    - Will slay the player who uses this command (Works on non-admin users only).
    ConVars:
    scb_report_enable "1' --> Enable/Disable Blocked Command Reports To The Chat.
    scb_slay_warning "2" --> Allow you to edit amount of warnings given to users before they get slayed.


    IMPORTANT NOTE : Use These commands by sm_rcon once after running your server using it more than one time will bug flood reportings .
    sm_rcon sm_blockcmd status
    Installation:
    Nothing just copy the .smx to sourcemod/plugins
    NOTE: this might not block all commands but will do that on most of them.
    Report anybugs down here.

    Changelog:

    17-11-2016
    - Fixed sm_kickcmd to kick players (Kinda forgot to add!)

    22-05-2017 - Version 1.2.0
    - Fixed Warnings.
    - Fixed some old functions.
    -Added !slaycmd (Thanks to SnowTigerVidz)
    - Converted Syntax.
    - Added a convar called scb_report_enable to enable or disable cmd usage on chat.

    23-6-2017 - Version 1.2.3
    - Added a new convar called scb_slay_warning allow you to edit amount of warnings given to users before they get slayed.
    - Added a cfg file for you to add your commands there located into "cfg/sourcemod/scb.cfg"
    - Fixed double warning messages.
    Attached Files
    File Type: sp Get Plugin or Get Source (Simple Command Blocker.sp - 1541 views - 2.6 KB)
    File Type: smx Simple Command Blocker.smx (5.1 KB, 458 views)
    File Type: zip SimpleCommandBlocker 1.2.0.zip (7.2 KB, 240 views)
    File Type: zip SimpleCommandBlocker 1.2.3.zip (9.2 KB, 782 views)

    Last edited by ambn; 06-23-2017 at 02:22.
    ambn is offline
    nguyenbaodanh
    AlliedModders Donor
    Join Date: Jun 2007
    Location: HCMC, Vietnam
    Old 04-20-2017 , 07:32   Re: [ANY] Simple Command Blocker
    Reply With Quote #2

    why it spam the chat too many time ? =.=
    I block "kill" command and everytime player type that command .. it spam the chat box
    __________________
    nguyenbaodanh is offline
    Obyboby
    Veteran Member
    Join Date: Sep 2013
    Old 04-20-2017 , 08:10   Re: [ANY] Simple Command Blocker
    Reply With Quote #3

    Does it block chat commands?
    I'd like to find a plugin that slays any non-admin who types !admin :p (assuming they're alive when they do)
    __________________
    Obyboby is offline
    zyox123cc
    Senior Member
    Join Date: Jul 2016
    Location: spycrab
    Old 05-12-2017 , 07:28   Re: [ANY] Simple Command Blocker
    Reply With Quote #4

    so i want blocker join_class i need?
    sm_blockcmd #join_class scout;join_class soldier;join_class pyro;join_class demoman;join_class heavy;join_class medic;join_class engineer;join_class sniper;join_class spy ?
    __________________
    sv_downloadurl Recommended FREE website
    000webhost(File is too big (max. 32MB)! Upload will be skipped.)
    rejetto
    (Local_computer_host)
    Getting material/model paths easy way (Windows)
    steam profile
    Youtube
    zyox123cc is offline
    cigzag
    AlliedModders Donor
    Join Date: Nov 2014
    Location: NZ
    Old 05-12-2017 , 08:27   Re: [ANY] Simple Command Blocker
    Reply With Quote #5

    Quote:
    Originally Posted by Obyboby View Post
    Does it block chat commands?
    I'd like to find a plugin that slays any non-admin who types !admin :p (assuming they're alive when they do)
    Try this
    New command - sm_slaycmd
    Attached Files
    File Type: sp Get Plugin or Get Source (Simple%20Command%20Blocker.sp - 917 views - 3.3 KB)
    File Type: smx Simple%20Command%20Blocker.smx (5.6 KB, 207 views)

    Last edited by cigzag; 05-12-2017 at 08:27.
    cigzag is offline
    B3none
    AlliedModders Donor
    Join Date: Oct 2016
    Location: United Kingdom
    Old 05-12-2017 , 21:05   Re: [ANY] Simple Command Blocker
    Reply With Quote #6

    Quote:
    Originally Posted by Obyboby View Post
    Does it block chat commands?
    I'd like to find a plugin that slays any non-admin who types !admin :p (assuming they're alive when they do)
    PHP Code:
    #include <sourcemod>
    #include <sdktools>

    #pragma semicolon 1
    #pragma newdecls required

    #define TAG_MESSAGE "[\x04AdminBlocker\x01]"

    public Plugin myinfo 
    {
        
    name "Slay !admin",
        
    author "B3none",
        
    description "Slay regular users for trying to type !admin.",
        
    version "0.3",
        
    url ""
    };

    public 
    void OnPluginStart()
    {
        
    AddCommandListener(triggerCommand"sm_admin");
    }

    public 
    Action triggerCommand(int client, const char[] commandint argc)
    {
        if(
    CheckCommandAccess(client"sm_generic_admin"ADMFLAG_GENERIC) == false)
        {
            
    ForcePlayerSuicide(client);
            
    PrintToChat(client"%s You've been slayed for trying to access the \x02!admin\x01 command!"TAG_MESSAGE);
        }

    __________________
    B3none is offline
    ambn
    Veteran Member
    Join Date: Feb 2015
    Location: Fun servers
    Old 05-22-2017 , 00:17   Re: [ANY] Simple Command Blocker
    Reply With Quote #7

    Oh i havent looked on this thread for a long time so ill check these thing mentioned soon
    __________________
    ambn is offline
    ambn
    Veteran Member
    Join Date: Feb 2015
    Location: Fun servers
    Old 05-22-2017 , 12:32   Re: [ANY] Simple Command Blocker
    Reply With Quote #8

    22-05-2017
    - Fixed Warnings.
    - Fixed some old functions.
    -Added !slaycmd (Thanks to SnowTigerVidz)
    - Converted Syntax.
    - Added a convar called scb_report_enable to enable or disable cmd usage on chat.
    __________________
    ambn is offline
    Obyboby
    Veteran Member
    Join Date: Sep 2013
    Old 06-20-2017 , 16:23   Re: [ANY] Simple Command Blocker
    Reply With Quote #9

    Quote:
    Originally Posted by ambn View Post
    22-05-2017
    - Fixed Warnings.
    - Fixed some old functions.
    -Added !slaycmd (Thanks to SnowTigerVidz)
    - Converted Syntax.
    - Added a convar called scb_report_enable to enable or disable cmd usage on chat.
    Thanks for implementing my idea!
    I've just installed the plugin and am about to test it.
    Uhm, I don't quite get where I should add the chat commands that are not allowed?


    EDIT: ok I managed to add the commands. Another idea: give one or more warnings before slaying the user; slap command; cfg file to easily add/remove commands.
    Thanks

    Btw I'm getting double messages though



    how can I fix that?

    I also noticed that typing one of the "banned" commands would slay me as well, and I'm an admin with z flag! This has to be applied to non-admins only.. :C
    __________________

    Last edited by Obyboby; 06-20-2017 at 18:34.
    Obyboby is offline
    ambn
    Veteran Member
    Join Date: Feb 2015
    Location: Fun servers
    Old 06-20-2017 , 22:58   Re: [ANY] Simple Command Blocker
    Reply With Quote #10

    Quote:
    Originally Posted by Obyboby View Post
    Thanks for implementing my idea!
    I've just installed the plugin and am about to test it.
    Uhm, I don't quite get where I should add the chat commands that are not allowed?


    EDIT: ok I managed to add the commands. Another idea: give one or more warnings before slaying the user; slap command; cfg file to easily add/remove commands.
    Thanks

    Btw I'm getting double messages though



    how can I fix that?

    I also noticed that typing one of the "banned" commands would slay me as well, and I'm an admin with z flag! This has to be applied to non-admins only.. :C
    Will manage this soon
    Thanks for feedback
    __________________
    ambn is offline
    Reply



    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 03:22.


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