Raised This Month: $ Target: $400
 0% 

Custom HUD icons and Text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sake
Senior Member
Join Date: Jul 2011
Old 08-20-2011 , 13:02   Custom HUD icons and Text
Reply With Quote #1

Hello there,

I want to do a plugin that creates a HUD Text (like HP and Armor) that shows Kills and Deaths. Is that possible?

sake
__________________
sake is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-20-2011 , 13:08   Re: Custom HUD icons and Text
Reply With Quote #2

If you mean the same exactly, it's handled client-side, and you can't do the same. For text, you have to play with normal hud.
__________________

Last edited by Arkshine; 08-20-2011 at 13:11.
Arkshine is offline
Old 08-20-2011, 13:09
bibu
This message has been deleted by bibu.
sake
Senior Member
Join Date: Jul 2011
Old 08-20-2011 , 13:19   Re: Custom HUD icons and Text
Reply With Quote #3

I found StatusIcon. This seems quite nice. But I only can display 0-9. Hmm K. Or is there a way to write them in one line?

EDIT: Oh... StatusIcon is for all Players

I will look for the hud thingy. What is the set_hudmessage() command for bottom of the screen?

+Karma for Arkshine (am I doing this right?)
__________________

Last edited by sake; 08-20-2011 at 13:25.
sake is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-20-2011 , 13:52   Re: Custom HUD icons and Text
Reply With Quote #4

set_hudmessage( x, y, ... ) and value goes from 0.0 to 1.0. You can use -1 to get the center.

Code:
  x:0.0,y:0.0     x:1.0, y:0.0   
        ┌───────────┐
        │           │
        │           │
        └───────────┘
  x:0.0,y:1.0     x:1.0, y:1.0
__________________
Arkshine is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-20-2011 , 18:30   Re: Custom HUD icons and Text
Reply With Quote #5

Quote:
Originally Posted by sake View Post
EDIT: Oh... StatusIcon is for all Players
If you send it with MSG_ALL/BROADCAST yes it is, but you can send it with MSG_ONE[_UNRELIABLE] and specify the player id in the 4th arg like so:
Code:
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("StatusIcon"), _, id)
__________________
Hunter-Digital is offline
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 06:43.


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