I don't think that'd work because the message is sent before you can block it, I believe.
Here's what I did for my Grenade Sack plugin:
Code:
register_message(get_user_msgid("TextMsg") , "block_message");
then
Code:
public block_message() {
if(get_msg_argtype(2) == ARG_STRING) {
new value[64];
get_msg_arg_string(2 , value , 63);
if(equali(value , "#Cannot_Carry_Anymore")) {
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE;
}
__________________