Hi there

I have a big problem with messages...
I can block messages without problems
- But is it possible to alter the content of the message and let the message pass my plugin?
For example add a timestamp like "[10:45

3] #Fire_in_the_hole"....
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_message(get_user_msgid("TextMsg"), "block_message");
}
public block_message(msg_id, msg_dest, entity)
{
if(get_msg_args() == 5)
{
if(get_msg_argtype(5) == ARG_STRING)
{
new value5[64];
get_msg_arg_string(5 ,value5 ,63);
if(equal(value5, "#Fire_in_the_hole"))
{
return PLUGIN_HANDLED; //blocks the message
//How do i alter the message content??
}
}
}
return PLUGIN_CONTINUE;
}
Here is the message which i logged with DS's msglogging.amxx
(
http://forums.alliedmods.net/showthread.php?p=65983)
Code:
/*
MessageBegin (TextMsg "77") (Destination "One<1>") (Args "5") (Entity "1") (Classname "player") (Netname "~regalis~") (Origin "0.000000 0.000000 0.000000")
Arg 1 (Byte "5")
Arg 2 (String "1")
Arg 3 (String "#Game_radio")
Arg 4 (String "~regalis~")
Arg 5 (String "#Fire_in_the_hole")
MessageEnd (TextMsg "77")
*/
Any help will be appreciated!
greetz regalis
__________________