For a jailbreak mod, when a terrorist attack another terrorist, the message on say says "x attacked a teammate" I want to remove it. I tryed this
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("D7 block saytext team attack", "0.0.1", "D i 5 7 i n c T, Johnny got his gun")
register_message(get_user_msgid("SayText"), "message_SayText")
}
// Credits to Johnny got his gun
public message_SayText()
{
if (get_msg_args() > 4)
return PLUGIN_CONTINUE;
static szBuffer[40];
get_msg_arg_string(2, szBuffer, 39)
if (!equali(szBuffer, "#Cstrike_TitlesTXT_Game_teammate_attack"))
return PLUGIN_CONTINUE;
return PLUGIN_HANDLED;
}
and this (with the plugin init obv)
PHP Code:
public message_SayText()
{
if (get_msg_args() > 4)
return PLUGIN_CONTINUE;
static szBuffer[23];
get_msg_arg_string(2, szBuffer, 22)
if (!equali(szBuffer, "#C4_Plant_At_Bomb_Spot") )
{
return PLUGIN_CONTINUE;
}
return PLUGIN_HANDLED;
}
They dont work and I checked jbextreme and no idea how he does it.
Post from the functions:
https://forums.alliedmods.net/showth...20#post2180920
Post from jbextreme:
https://forums.alliedmods.net/showthread.php?p=1113644
Example image from the text to remove: