Quote:
Originally Posted by Watermelonnable
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(PLUGIN, VERSION, AUTHOR); 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.