ShowSyncHudText

Last Updated2021-06-24
Created At2008-03-02

Shows a synchronized HUD message to a client. As of this writing, only TF, HL2MP, and SourceForts support HUD Text.

native 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

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

Error

Invalid client index, client not in game, or sync object not valid.