StartMessage Function

Starts a usermessage (network message).

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

Parameters

char[] msgname

Message name to start.

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.