ShowSyncHudText Function

Shows a synchronized HUD message to a client.

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

int ShowSyncHudText(int client, Handle sync, const char[] message, any ...)

Parameters

int client

Client index to send the message to.

Handle sync

Synchronization object.

const char[] message

Message text or formatting rules.

any ...

Message formatting parameters.

Return Value

-1 on failure, anything else on success. This function fails if the mod does not support it.

Errors

Client not in-game, or sync object not valid.