Yay I got it to work

Thx for all the tips and code.
I changed it to this
Code:
#include <amxmodx>
#include <engine>
#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "Jim"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("SayText"), "block_changename")
}
public block_changename(msgid, msgdest, msgent) {
new sz[80]
get_msg_arg_string(2, sz, 79)
if(containi(sz, "#Cstrike_Name_Change") != -1)
return PLUGIN_HANDLED
return PLUGIN_CONTINUE
}
Got this from message plugin that helped me
http://forums.alliedmods.net/showthr...essage+logging
Code:
L 01/05/2007 - 15:34:13: MessageBegin (SayText "76") (Destination "Broadcast<0>") (Args "4") (Entity "<NULL>") (Classname "<NULL>") (Netname "<NULL>") (Origin "0.000000 0.000000 0.000000")
L 01/05/2007 - 15:34:13: Arg 1 (Byte "9")
L 01/05/2007 - 15:34:13: Arg 2 (String "#Cstrike_Name_Change")
L 01/05/2007 - 15:34:13: Arg 3 (String "palla")
L 01/05/2007 - 15:34:13: Arg 4 (String "lantz")
L 01/05/2007 - 15:34:13: MessageEnd (SayText "76")
That is when I chanaged name from palla to lantz
__________________