Raised This Month: $ Target: $400
 0% 

Black hud message.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 05-20-2016 , 17:59   Black hud message.
Reply With Quote #1

I want to make the hud message in black color, but it doesn't works. Now, this is the code:

PHP Code:
// Spectating someone else?
    
if (id != ID_SHOWHUD)
    {
        
// Show name, health, class, and ammo packs and armor
        
set_dhudmessage(random(256),random(256),random(256), HUD_STATS_XHUD_STATS_Y06.01.10.00.0)
        
show_dhudmessage(ID_SHOWHUD"HP: %d || Class: %s || AP: %d || Armor: %d"pev(ID_SHOWHUDpev_health), class, g_ammopacks[ID_SHOWHUD], pev(ID_SHOWHUDpev_armorvalue))
    }    
    else
    {
        if (
g_zombie[ID_SHOWHUD]) // zombies
        
{
                     
// Show health, class and ammo packs and armor
            
set_dhudmessage(255,0,0HUD_STATS_XHUD_STATS_Y06.01.10.00.0)
            
show_dhudmessage(ID_SHOWHUD"HP: %d || Class: %s || AP: %d"pev(ID_SHOWHUDpev_health), class, g_ammopacks[ID_SHOWHUD])
        }
        else
        {
            
// Show health, class and ammo packs and armor
            
set_dhudmessage(255,0,255HUD_STATS_XHUD_STATS_Y06.01.10.00.0)
            
show_dhudmessage(ID_SHOWHUD"HP: %d || Armor: %d || Class: %s || AP: %d"pev(ID_SHOWHUDpev_health), pev(ID_SHOWHUDpev_armorvalue), class, g_ammopacks[ID_SHOWHUD])
        }
    }

What i did?

I changed this part from the code:

PHP Code:
set_dhudmessage(255,0,255HUD_STATS_XHUD_STATS_Y06.01.10.00.0
===>

PHP Code:
set_dhudmessage(0,0,0HUD_STATS_XHUD_STATS_Y06.01.10.00.0
But when you are in the server, you can't see the hud message... I mean that the message is invisible and it can't be seen! Can someone help me?

Last edited by GlobalPlague; 05-20-2016 at 18:01.
GlobalPlague is offline
 



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 18:37.


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