register_message
Engine (engine.inc)
Description
register_message - Hooks a message to a single function.
Syntax
register_message ( msgId, function[] )
Type
Native
Notes
This is like an advanced register_event.
The function you create should have the following arguments passed to it: msg_id, msg_dest, and msg_entity. You should NEVER send a message or use a command which sends a message while in a register_message hook.

Returning PLUGIN_CONTINUE will send the message on the stack, PLUGIN_HANDLED will block the message.

See the following commands for using message commands:

get_msg_args
get_msg_argtype
get_msg_arg_int
get_msg_arg_float
get_msg_arg_string
set_msg_arg_int
set_msg_arg_float
set_msg_arg_string
get_msg_origin