get_msg_destination

Синтаксис

stock get_msg_destination(id, bool:reliable)

Употреба

id
Client index or 0 for all clients
reliable
If true, the message will be sent via the reliable
channel, otherwise it will use the unreliable one

Описание

Used with message stocks. Returns whether or not to use the reliable or
unreliable channel when sending a message according to the params used.

Връщаща стойност

MSG_ONE if "id" is non-zero and "reliable" is true,
MSG_ONE_UNRELIABLE if "id" is non-zero and "reliable" is false,
MSG_ALL if "id" is zero and "reliable" is true,
MSG_BROADCAST if "id" is zero and "reliable" is false.