Raised This Month: $ Target: $400
 0% 

Drawing to the screen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 06-28-2007 , 09:09   Drawing to the screen
Reply With Quote #1

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
purple_pixie is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 06-28-2007 , 10:51   Re: Drawing to the screen
Reply With Quote #2

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
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 06-28-2007 at 10:56.
fxfighter is offline
Send a message via MSN to fxfighter
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 06-28-2007 , 10:58   Re: Drawing to the screen
Reply With Quote #3

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 ;-)
purple_pixie is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 06-28-2007 , 11:00   Re: Drawing to the screen
Reply With Quote #4

np just keep coding
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:30.


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