show_hudmessage

Syntax

native show_hudmessage(index, const message[], any:...);

Usage

Parameter Description
index
Client index, use 0 to display to all clients
message
Formatting rules
...
Variable number of formatting parameters

Description

Displays a message on the client HUD.

Note

  • Use set_hudmessage to define how the message should look on screen.
  • This functions return value behaves differently depending on what is
    used as the client index: If 0 is specified, then the function will
    return 0 if nothing has been sent (no client connected). If either a
    single client is specified, or there is at least one client connected,
    the number of printed characters will refer to the message that is sent
    last, to the client with the highest index.

Return

Number of printed characters

Error

If a single client is specified and the index is not within
the range of 1 to MaxClients, an error will be thrown.