View Single Post
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-04-2019 , 11:46   Re: Block message when someone types ff in chat
Reply With Quote #2

Quote:
Originally Posted by Watermelonnable View Post
Hello guys.

I want to block the message that appears when someone types "ff" in the chat (Friendly fire: on/off) because smart players of the mode I'm working on exploit this to tell the alive players who's the enemy.

I thought this would be enough but it didn't work.

PHP Code:
#include <amxmodx>

#define PLUGIN            "TTT - Block FF Command"
#define VERSION            "1.0"
#define AUTHOR          "Watermelonnable"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_clcmd("say ff""BlockFF");
    
register_clcmd("say_team ff""BlockFF")
}

public 
BlockFF()
{
    return 
PLUGIN_HANDLED_MAIN;

Any hint to achieve this? Thank you!
In nexstmap.sma look for register_clcmd("say ff" and remove it and it's code.
Or you can use Orpheu and hook pfnClientCommand then block it by checking the arguments if they match ^say ff^ if you want to be resistent on AMXX updates without having to edit that plug-in.

Last edited by DarthMan; 12-04-2019 at 11:47.
DarthMan is offline