| 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_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Class: %s || AP: %d || Armor: %d", pev(ID_SHOWHUD, pev_health), class, g_ammopacks[ID_SHOWHUD], pev(ID_SHOWHUD, pev_armorvalue)) } else { if (g_zombie[ID_SHOWHUD]) // zombies { // Show health, class and ammo packs and armor set_dhudmessage(255,0,0, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Class: %s || AP: %d", pev(ID_SHOWHUD, pev_health), class, g_ammopacks[ID_SHOWHUD]) } else { // Show health, class and ammo packs and armor set_dhudmessage(255,0,255, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Armor: %d || Class: %s || AP: %d", pev(ID_SHOWHUD, pev_health), pev(ID_SHOWHUD, pev_armorvalue), class, g_ammopacks[ID_SHOWHUD]) } } }
What i did?
I changed this part from the code:
PHP Code:
set_dhudmessage(255,0,255, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0)
===>
PHP Code:
set_dhudmessage(0,0,0, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.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? :)
|