StartMessage Function

Starts a usermessage (network message).

Handle StartMessage(const char[] msgname, const int[] clients, int numClients, int flags)

Parameters

const char[] msgname

Message name to start.

const int[] clients

Array containing player indexes to broadcast to.

int numClients

Number of players in the array.

int flags

Optional flags to set.

Return Value

A handle to a bf_write bit packing structure, or INVALID_HANDLE on failure.

Errors

Invalid message name, unable to start a message, invalid client, or client not connected.

Notes

Only one message can be active at a time.

It is illegal to send any message while a non-intercept hook is in progress.