Raised This Month: $ Target: $400
 0% 

Solved Block message when someone types ff in chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 02:44.


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