Raised This Month: $51 Target: $400
 12% 

Turning HUD into DHUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 08-19-2021 , 20:18   Turning HUD into DHUD
Reply With Quote #1

Hello. Can someone help me to make the following HUD message to be shown as dhud, not just HUD. DHUD messages are shown in smaller print than HUD messages. I want the message to be shown in smaller print.

Here is the code:

Code:
Spectating someone else?
	if (id != ID_SHOWHUD)
	{
		// Show name, health, class, and ammo packs and armor
		set_hudmessage(255, 10, 255, HUD_SPECT_X, HUD_SPECT_Y, 1, 6.0, 1.1, 0.0, 0.0, -1)
		ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "%L %s^nHP: %d - %L %s - %L %d - %L %d", ID_SHOWHUD, "SPECTATING", g_playername[id],
		pev(id, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[id], ID_SHOWHUD, "ARMOR", pev(id, pev_armorvalue))
	}
	else
	{
		// Show health, class and ammo packs and armor
		set_hudmessage(red, green, blue, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0, -1)
		ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "%L: %d - %L %s - %L %d - %L %d", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS",
		class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], ID_SHOWHUD, "ARMOR", pev(ID_SHOWHUD, pev_armorvalue))
	}
}
Thanks.

Last edited by GlobalPlague; 08-19-2021 at 20:19. Reason: Mistake
GlobalPlague is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 08-19-2021 , 21:43   Re: Turning HUD into DHUD
Reply With Quote #2

you might be mistaken
DHud always bigger than Hud
__________________
My plugin:
Celena Luna is offline
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 08-19-2021 , 22:54   Re: Turning HUD into DHUD
Reply With Quote #3

Quote:
Originally Posted by Celena Luna View Post
you might be mistaken
DHud always bigger than Hud
I thought DHUD is smaller than HUD.

In this case, i'm mistaken. I don't want bigger messages, but smaller ones. You know the default size of the HUD message that shows Health, Class, Ammo, etc... in ZPA 1.6.1, right? I want to make this message smaller.
GlobalPlague is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 08-19-2021 , 22:59   Re: Turning HUD into DHUD
Reply With Quote #4

Quote:
Originally Posted by GlobalPlague View Post
I thought DHUD is smaller than HUD.

In this case, i'm mistaken. I don't want bigger messages, but smaller ones. You know the default size of the HUD message that shows Health, Class, Ammo, etc... in ZPA 1.6.1, right? I want to make this message smaller.
Not possible.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-20-2021 , 01:08   Re: Turning HUD into DHUD
Reply With Quote #5

All you have to do is replace ShowSyncHudMsg

With show_hudmessage
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 08-20-2021 at 01:16.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Old 08-20-2021, 16:49
GlobalPlague
This message has been deleted by GlobalPlague. Reason: Mistake
zollymaN
Junior Member
Join Date: Aug 2021
Location: Romania
Old 08-21-2021 , 12:35   Re: Turning HUD into DHUD
Reply With Quote #6

Code:
Spectating someone else?
	if (id != ID_SHOWHUD)
	{
		// Show name, health, class, and ammo packs and armor
		set_hudmessage(255, 10, 255, HUD_SPECT_X, HUD_SPECT_Y, 1, 6.0, 1.1, 0.0, 0.0, -1)
		ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "%L %s^nHP: %d - %L %s - %L %d - %L %d", ID_SHOWHUD, "SPECTATING", g_playername[id],
		pev(id, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[id], ID_SHOWHUD, "ARMOR", pev(id, pev_armorvalue))
	}
	else
	{
		// Show health, class and ammo packs and armor
		set_hudmessage(red, green, blue, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0, -1)
		ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "%L: %d - %L %s - %L %d - %L %d", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS",
		class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], ID_SHOWHUD, "ARMOR", pev(ID_SHOWHUD, pev_armorvalue))
	}
}
with

Code:
Spectating someone else?
	if (id != ID_SHOWHUD)
	{
		// Show name, health, class, and ammo packs and armor
		set_dhudmessage(255, 10, 255, HUD_SPECT_X, HUD_SPECT_Y, 1, 6.0, 1.1, 0.0, 0.0, -1)
		show_dhudmessage(ID_SHOWHUD, "%L %s^nHP: %d - %L %s - %L %d - %L %d", ID_SHOWHUD, "SPECTATING", g_playername[id],
		pev(id, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[id], ID_SHOWHUD, "ARMOR", pev(id, pev_armorvalue))
	}
	else
	{
		// Show health, class and ammo packs and armor
		set_dhudmessage(red, green, blue, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0, -1)
		show_dhudmessage(ID_SHOWHUD, "%L: %d - %L %s - %L %d - %L %d", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS",
		class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], ID_SHOWHUD, "ARMOR", pev(ID_SHOWHUD, pev_armorvalue))
	}
}

Last edited by zollymaN; 08-21-2021 at 12:36.
zollymaN 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 01:51.


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