View Single Post
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-17-2020 , 04:57   Re: How to hide the AMX Console command from "say"?
Reply With Quote #6

Not sure, but wouldn't be something like this better? I mean it's not optimal, since the original code should be adjusted instead of creating a new one.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "BlockReviveMsg"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_clcmd("say""HandleSay");
}

public 
HandleSay(id)
{
    new 
szArg[10];
    
read_argv(1szArgcharsmax(szArg));
    
    if(
equal(szArg"/revive"))
    {
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

__________________

Last edited by Napoleon_be; 02-17-2020 at 04:59.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be