AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Black hud message. (https://forums.alliedmods.net/showthread.php?t=282925)

GlobalPlague 05-20-2016 17:59

Black hud message.
 
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? :)

redivcram 05-20-2016 18:26

Re: Black hud message.
 
It's not possible

GlobalPlague 05-20-2016 19:59

Re: Black hud message.
 
Quote:

Originally Posted by redivcram (Post 2420600)
It's not possible

Maybe you are right. :(

redivcram 05-21-2016 08:30

Re: Black hud message.
 
I am absolutely right. HUD messages aren't just flat colors, they glow, therefore nothing black can glow.


All times are GMT -4. The time now is 18:38.

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