Jump to content

Recommended Posts

Posted

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

 

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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