[INC] Director Hud Message

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1189
Gender:
United States of America

[INC] Director Hud Message

Post by Archive-Poster »

Director Hud Message
- last updated : 14 feb 2011

Ever wanted to display message like the hints messages in CS or on HLTV?
It should work on all mods. It uses basically the same params as set_hudmessage. (except for channel)
As side-note, the size is bigger than normal hud message and it can't be changed.

│ Limitations
Max message length : 128 characters.
You can show only 8 messages at once.

│ Developer Notes
The tip were in hud_spectator.cpp (line 526) in the HLSDK (client).

│ Functions
The following functions mimic the style of set_hudmessage() and show_hudmessage().

Code: Select all

set_dhudmessage( red = 0, green = 160, blue = 0, Float:x = -1.0, Float:y = 0.65, effects = 2, Float:fxtime = 6.0, Float:holdtime = 3.0, Float:fadeintime = 0.1, Float:fadeouttime = 1.5, bool:reliable = false )
show_dhudmessage( index, const message[], any:... )
Attachments
dhud_message_test.sma.zip
(420 Bytes) Downloaded 2 times
dhudmessage.inc.zip
(1.22 KiB) Downloaded 5 times

Who is online

Users browsing this forum: No registered users and 0 guests