AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Drawing to the screen (https://forums.alliedmods.net/showthread.php?t=57103)

purple_pixie 06-28-2007 09:09

Drawing to the screen
 
Hello amx community,

I've recently downloaded the amxmodx files and started playing around with it ... it all makes sense and seems probably the second easiest language I've had to learn (second only to Game Maker's GML )

I've looked around through all the tutorials and informative threads I could find but I don't really get how to draw to the screen.

Something like the "HUD" in WC3 ... the "XP Plugin tutorial" has a HUD but I couldn't get it working - but that's not the point.

If someone could give a general (and however short) overview of how to draw / write something to the player's screen I would be a very happy modder.

Thanks for taking the time to, if nothing else, read this.

-Pixie

EDIT: Whoa, sorry for the double-thread - I tried to edit it and I must have hit "back" instead :-S

fxfighter 06-28-2007 10:51

Re: Drawing to the screen
 
you mean set hud message

PHP Code:

set_hudmessage(255255255, -1.0, -1.006.012.0)
show_hudmessage(id"text"

text will be desplayed in white at the center of the screen in 12 sec

PHP Code:

what the values mean...
set_hudmessage(redgreenbluexyeffectfxtimetime)
show_hudmessage(id"message")
change id to 0 and everyone will see it-.- 

to show an integer or a string in the message
PHP Code:

 
show_hudmessage
(id"text %i "integer)
show_hudmessage(id"text %s"string

The easys way to make one is the hud message generator on amxx-studio

purple_pixie 06-28-2007 10:58

Re: Drawing to the screen
 
That sounds very handy - thankyou.

I may be back to ask more later, but I'm a strong believer in not asking for info/help before experimenting to death first, and I can't try it out at work ;-)

fxfighter 06-28-2007 11:00

Re: Drawing to the screen
 
np just keep coding :)


All times are GMT -4. The time now is 21:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.