say_hud 

Usage:
/say_hud (options) text

Description:
       The /say_hud command echos the given text on a user's HUD, if possible. In Halflife, HUD messages are erased on death. Also, using the same channel for a message before the last one has completed will result in unreliable duration of the message.

Options:

Option Range Default Description
color 0-255 0-255 0-255 255 255 255 Sets the color of the HUD text, in RGB values. This is for Color #1. If this is a word, the word will be replaced with the value in the SYS_COLOR list, if it exists.
alpha 0-255 255 Alpha value of color #1.
color2 0-255 0-255 0-255 255 255 255 Sets the color of the HUD text, in RGB values. This is for Color #2. If this is a word, the word will be replaced with the value in the SYS_COLOR list, if it exists.
alpha2 0-255 255 Alpha value of color #2.
pos 0-1 0-1 (X Y) 0.5 0.5 Determines the position on the screen of the comment, given from 0-1, (0.8 is on the right hand side, or close to the bottom). You can also use the value of -1 to specify the center. If this value is a word, the word will be replaced with the item in the SYS_HUDPOS list, if it exists.
chan 0-99 0 Determines the channel the HUD text will be displayed through. In halflife, only one string can be showing per channel on the screen at one time.
FadeIn 0-10 .5 Determines how long the text will take to fade into the users HUD
FadeOut 0-10 .5 Determines how long the text will take to fade out of the users HUD
effect 0+ 0 Specifies a numeric effect for the text.

  • 0 - Normal Fade In/Out
  • 1 - Flickey Credits
  • 2 - Write In/Out
  • fxTime 0+ 1 Effect time. Time the highlight lags behind the leading text in effect 2
    len 0-999 5 Determines how long the message will stay on the screen, in seconds.
    targ userid, all, team all Specifies the target of the message. It is sent to a single person, if a userid is specified, to everyone if "all", or to a certain team if the team name is specified.

    Example:


    /say_hud examples

    # This will show a HUD message to the person doing the command in the
    # bottom center of the screen, colored green, saying 'You are Lame!'

    on pcmd_lame cmd
         /say_hud (color=0 255 0, pos=-1 0.8, chan=0, targ=$(pz)) You are lame!;

    # This will show a red HUD message to everyone, at the bottom center,
    # for 10 seconds

    on acmd_welcome cmd
        /say_hud (color=red, pos=bottom, len=10) Welcome to the server.;