Signature
native set_dhudmessage(red = 200, green = 100, blue = 0, Float:x = -1.0, Float:y = 0.35, effects = 0, Float:fxtime = 6.0, Float:holdtime = 12.0, Float:fadeintime = 0.1, Float:fadeouttime = 0.2);
Description
Sets display parameters for director hudmessages.
Notes
-
For the hudmessage coordinates x and y, -1.0 will center the message
on the respective axis.
-
These parameters stay until the next call to set_dhudmessage overwrites
them. Multiple calls to show_dhudmessage will therefore re-use the same
parameters. The parameters are not stored per-plugin, so other plugins
can overwrite them.
Parameters
- red — Red component of hudmessage color
- green — Green component of hudmessage color
- blue — Blue component of hudmessage color
- x — Location of the message on the x axis in percent
- y — Location of the message on the y axis in percent
- effects — Display effect
- fxtime — Duration of the effect
- holdtime — Time the message stays on screen
- fadeintime — Time it takes the message to fully appear (fade-in)
- fadeouttime — Time it takes the message to fully disappear (fade-out)
No return value