Jump to content

[Tutorial]About HUD's [AMXX]


Fllyyper

Recommended Posts

As you know HUD's are very used.

They are very simple to do.

To not have problems with them take amxx studio and choose the top Generators -> Hud messaje position generator and choose there color, etc. after that click OK.

Let me explain how a HUD.

set_hudmessage ( 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, channel=4 )
show_hudmessage(id, "")

set_hudmessage (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, channel = 4) - is setting, ie position, color and time display.

show_hudmessage (id, "") - your message will be displayed here. You can make more of these for more HUD's.

set_hudmessage(255, 0, 0, 0.33, 0.27, 0, 6.0, 12.0)

where color is red ester.

255 0 0 - is red

the max is white that is 255 255 255.

set_hudmessage(255, 0, 0, 0.33, 0.27, 0, 6.0, 12.0)

- Where red is like x, y position of.

- Is HUD's effects:

0 = Fade In / Fade Out

1 = flickery credits

2 = write out (training room)

 

ex.

set_hudmessage ( 200, 100, 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, channel=4 )

- Float: fxtime = 6.0, Float: holdtime = 12.0, Float: fadeintime = 0.1, Float: fadeouttime = 0.2, channel = 4 is the settings that are displaying the effect.

More details in here:http://www.amxmodx.org/funcwiki.php?go=func&id=28

Notes: show_hudmessage (id, "") If you use the id when it will not display at all players put 0 instead of id:)

ex.

# include <amxmodx>

# include <amxmisc>

 

# define PLUGIN "Message"

# define VERSION "1.0"

# define AUTHOR "Fllyyper"

 

 

public plugin_init () (

  register_plugin (PLUGIN, VERSION, AUTHOR)

  set_task (30.0, "Message", 0 ,_,_,_, 0)

)

 

public Message () (

  set_hudmessage (255, 0, 0, 0.33, 0.27, 0, 6.0, 12.0)

  show_hudmessage (0, "Show message")

)

After 30 seconds will be shown a HUD message.

Have Fun: P

 

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock