Quote:
Originally Posted by Xalus
ToDo
Code:
- Fix bugs (friendlyfire msg -> Can somoene help to fix?)
|
here my friend
Code:
#include <amxmodx>
public plugin_init()
{
// message hook
register_message(get_user_msgid("TextMsg"), "message_textmsg")
}
// Block some text messages
public message_textmsg()
{
static textmsg[22]
get_msg_arg_string(2, textmsg, charsmax(textmsg))
// Block Teammate attack and kill Message
if (equal(textmsg, "#Game_teammate_attack") || equal(textmsg, "#Killed_Teammate"))
{
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
This block all teammate attacks and kill messages. what u wanted?
__________________