ShowHudText Function

Shows a HUD message to a client on the given channel.

As of this writing, only TF, HL2MP, and SourceForts support HUD Text.

int ShowHudText(int client, int channel, const char[] message, any ...)


int client

Client index to send the message to.

int channel

A channel number. If -1, then a channel will automatically be selected based on the least-recently-used channel. If the channel is any other number, it will be modulo'd with the channel count to get a final channel number.

const char[] message

Message text or formatting rules.

any ...

Message formatting parameters.

Return Value

-1 on failure (lack of mod support). Any other return value is the channel number that was used to render the text.