Raised This Month: $ Target: $400
 0% 

Solved invisible chat commands


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lexzor
Veteran Member
Join Date: Nov 2020
Old 07-19-2022 , 09:45   Re: invisible chat commands
Reply With Quote #2

PHP Code:
#include <amxmodx>

new const g_szCommands[][] =
{
    
"/shop",
    
"/class",
    
"/menu"
}

public 
plugin_init()
{
    
register_plugin("ChatCMDHider""0.1""AMXX Community");

    
register_clcmd("say""sayHandle");
    
register_clcmd("say_team""sayHandle");
}

public 
sayHandle(id)
{
    static 
szArg[192];
    
read_args(szArgcharsmax(szArg));
    
remove_quotes(szArg);
    
trim(szArg);

    for(new 
isizeof(g_szCommands); i++)
    {
        if(
equal(szArgg_szCommands[i]))
            return 
PLUGIN_HANDLED_MAIN;
    }

    return 
PLUGIN_CONTINUE;

lexzor is offline
 



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 15:32.


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