Resolved Dhud colors

Coding Help/Re-API Supported
User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 279
Joined: 9 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 21 times
Age: 33
Contact:

Dhud colors

#1

Post by Mark » 9 Months Ago

How is this done searched everywhere and most say it can't be done?

Examples if you know!

Thanks!
20180903173438_1.jpg

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1793
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 89 times
Age: 21
Contact:

#2

Post by Raheem » 9 Months Ago

For DHUD: You can show only 8 messages at once.

We can do this by making 4 DHUD text messages:
  1. Humans - Blue
  2. vs - White
  3. Zombie - Red
  4. %i -- %i - White
So 4 messages at once will not cause problems as our max is 8. This what i think how they did it.
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 279
Joined: 9 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 21 times
Age: 33
Contact:

#3

Post by Mark » 9 Months Ago

Raheem wrote:
9 Months Ago
For DHUD: You can show only 8 messages at once.

We can do this by making 4 DHUD text messages:
  1. Humans - Blue
  2. vs - White
  3. Zombie - Red
  4. %i -- %i - White
So 4 messages at once will not cause problems as our max is 8. This what i think how they did it.
You got a example how todo this?

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1793
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 89 times
Age: 21
Contact:

#4

Post by Raheem » 9 Months Ago

OK, here is example:
    1. #include <amxmodx>
    2.  
    3. public plugin_init()
    4. {
    5.     register_plugin("Colored DHUD", "1.0", "Raheem")
    6.    
    7.     set_task(10.0, "ShowMessages", _, _, _, "b")
    8. }
    9.  
    10. public ShowMessages()
    11. {
    12.     set_dhudmessage(0, 0, 255, 0.38, 0.01, 0, 0.0, 9.0)
    13.     show_dhudmessage(0, "Humans")
    14.    
    15.     set_dhudmessage(255, 255, 255, -1.0, 0.01, 0, 0.0, 9.0)
    16.     show_dhudmessage(0, "vs")
    17.    
    18.     set_dhudmessage(255, 0, 0, 0.54, 0.01, 0, 0.0, 9.0)
    19.     show_dhudmessage(0, "Zombies")
    20. }
Screenshot:
  • DHUD.png
Based on this idea you can achieve what you need.
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 279
Joined: 9 Months Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 21 times
Age: 33
Contact:

#5

Post by Mark » 9 Months Ago

Raheem wrote:
9 Months Ago
OK, here is example:
    1. #include <amxmodx>
    2.  
    3. public plugin_init()
    4. {
    5.     register_plugin("Colored DHUD", "1.0", "Raheem")
    6.    
    7.     set_task(10.0, "ShowMessages", _, _, _, "b")
    8. }
    9.  
    10. public ShowMessages()
    11. {
    12.     set_dhudmessage(0, 0, 255, 0.38, 0.01, 0, 0.0, 9.0)
    13.     show_dhudmessage(0, "Humans")
    14.    
    15.     set_dhudmessage(255, 255, 255, -1.0, 0.01, 0, 0.0, 9.0)
    16.     show_dhudmessage(0, "vs")
    17.    
    18.     set_dhudmessage(255, 0, 0, 0.54, 0.01, 0, 0.0, 9.0)
    19.     show_dhudmessage(0, "Zombies")
    20. }
Screenshot:
  • DHUD.png
Based on this idea you can achieve what you need.
Ahh i get it!

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 601
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 6 times
Age: 19
Contact:

#6

Post by Spir0x » 9 Months Ago

Oh what about this ?

Image
I trynna make money, not friends.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1793
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 89 times
Age: 21
Contact:

#7

Post by Raheem » 9 Months Ago

In zombie_escape.cfg set: ze_score_message_type 0
You don't know? Learn and you will know.

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 601
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 6 times
Age: 19
Contact:

#8

Post by Spir0x » 9 Months Ago

and then i can see only Humans vs Zombies ?
where is the score ?
I trynna make money, not friends.

User avatar
Raheem
Mod Developer
Mod Developer
Egypt
Posts: 1793
Joined: 2 Years Ago
Location: Egypt
Has thanked: 31 times
Been thanked: 89 times
Age: 21
Contact:

#9

Post by Raheem » 9 Months Ago

No, he didn't ask for score add. Also i only give a example how this can be done.

You need a full working code with our Mod using this?
You don't know? Learn and you will know.

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 601
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 6 times
Age: 19
Contact:

#10

Post by Spir0x » 9 Months Ago

Yes if possible.
I trynna make money, not friends.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest