I'm trying to block a message but it doesn't seem to be working:
Code:
register_message(get_user_msgid("TextMsg") , "block_message");
Code:
public block_message(msg_id , msg_dest , msg_ent) {
new const count = get_msg_args();
for(new i = 0; i < count; i++) {
if(get_msg_argtype(i) == ARG_STRING) {
new value[64];
get_msg_arg_string(i , value , 63);
if(equal(value , "#Cannot_Carry_Anymore")) {
return PLUGIN_HANDLED;
}
}
}
return PLUGIN_CONTINUE;
}
A solution would be appreciated. Thanks
__________________