Alrighty first some code then the question.
PHP Code:
...
new cSay;
...
public plugin_init() {
...
/* -- Chat handling -- */
register_clcmd("say", "c_say");
register_clcmd("say_team", "c_say");
cSay = get_user_msgid("SayText");
}
public c_say(id) {
new say_content[150],name[31];
read_args(say_content, sizeof(say_content));
remove_quotes(say_content);
get_user_name(id, name, sizeof(name) -1);
format(say_content, 191, "[%s] %s: %s",tag,name,say_content);
message_begin(MSG_ONE, cSay, _, id);
write_byte(id);
write_string(say_content);
message_end();
}
So when i execute this code on "say" "say_team" commands,
it writes:
Code:
[TAG] Lure.d: some text
Lure.d: some text
And i need it to
destroy original message, and replace it with my "custom" one.
Help!