ClientPrintEx
Extended version of ClientPrint. Sends a text message to the connected client with custom formatting options.
This message is sent only to the client — it is not transmitted to the server and is not visible to other players.
Расширенная версия ClientPrint. Отправляет текстовое сообщение подключённому клиенту с настраиваемым форматированием.
Сообщение отправляется только клиенту — оно не передаётся на сервер и не видно другим игрокам.
procedure ClientPrintEx(SenderID: Cardinal; Color: Word; Font: Word; Text: String);
Parameters:
- SenderID — ID of the object above which the text will appear.
0= text appears in the lower-left corner of the screen. - Color — text color.
0= default color. - Font — font type.
0= default font. - Text — message text.
def ClientPrintEx(SenderID: int, Color: int, Font: int, Text: str) -> None: ...
begin
// Show text above the character
ClientPrintEx(Self, 0, 0, 'Script loaded :)');
// Show colored text in the corner
ClientPrintEx(0, 33, 0, 'Warning: low HP!');
end.
# Show text above the character
ClientPrintEx(Self(), 0, 0, 'Script loaded :)')
# Show colored text in the corner
ClientPrintEx(0, 33, 0, 'Warning: low HP!')