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

[CSGO/ANY?] Command don't exist


Post New Thread Reply   
 
Thread Tools Display Modes
Author
leandro442
Member
Join Date: Sep 2013
Location: Portugal
Plugin ID:
8263
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    checks if the command typed in the chat exists
    Old 11-01-2022 , 05:49   [CSGO/ANY?] Command don't exist
    Reply With Quote #1

    This is a simple plugin that checks if the command typed in the chat by the player exists or not.
    Attached Files
    File Type: sp Get Plugin or Get Source (Comando_Inexistente.sp - 59 views - 1.9 KB)
    File Type: smx Comando_Inexistente.smx (13.2 KB, 34 views)
    leandro442 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 11-01-2022 , 08:11   Re: [CSGO/ANY?] Command don't exist
    Reply With Quote #2

    Will only work for commands created with RegAdminCmd(), RegConsoleCmd() and RegServerCmd(), not created with AddCommandListener(*, "say") and AddCommandListener(*, "say_team") hooks.
    __________________

    Last edited by Grey83; 11-01-2022 at 08:12.
    Grey83 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 11-04-2022 , 07:08   Re: [CSGO/ANY?] Command don't exist
    Reply With Quote #3

    @leandro442, 1st post doesn't describe the plugin's appointment in full !
    Code:
    ...
    	AddCommandListener(block, "status");
    	AddCommandListener(block, "ping");
    	AddCommandListener(block, "stats");
    }
    
    public Action block(int client, const char[] command, int args)
    {
    	return Plugin_Handled;
    }
    This should be mentioned! Because it may cause conflicting with other plugins.
    "status" method sometimes used for OS detection.

    There is no hardcoded /! symbols in SM. It is controlled by configs/core.cfg => "PublicChatTrigger", "SilentChatTrigger" values.

    #include <cstrike> is not necessary.

    Plugin returns incorrect info when the following command has entered in chat: !sm_admin

    Alternate plugin: [ANY] !COMMAND eater
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas 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 04:52.


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