Quote:
Originally Posted by OciXCrom
Remove "Cstrike_TitlesTXT_" from the first code.
The message code is "#Game_teammate_attack".
You can also use my plugin to modify/block any message - https://forums.alliedmods.net/showthread.php?t=282218
You can get a full list of messages in resource/cstrike_english.txt. Again, the "Cstrike_TitlesTXT_" part needs to be ommited.
|
still not working:
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, "#Game_teammate_attack"))
return PLUGIN_CONTINUE;
return PLUGIN_HANDLED;
}
The message in cstrike_english.txt is Cstrike_TitlesTXT_Game_teammate_attack
I dont like to use a plugin like that only for block 1 message, but if its the only way, I will