Raised This Month: $32 Target: $400
 8% 

[Question]Hudmsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-24-2007 , 16:55   [Question]Hudmsg
Reply With Quote #1

Hey guys im using jopmako's hud stock (code below for reference),
and im writing this line -
SendMsg_HudMsg(RP_Client,84,-1.0,-1.0,255,255,255,0,255,255,255,0,2,10.0,10.0,3 0.0,10.0,"Test");
Nothing is appearing though

stock -
// "HudMsg" message
stock SendMsg_HudMsg(client, channel,
Float: x, Float: y,
aRclr, aGclr, aBclr, aTclr,
bRclr, bGclr, bBclr, bTclr,
effect,
Float:fadein, Float:fadeout,
Float:holdtime, Float:fxtime,
const String:szMsg[])
{
new Handle:hBf;

if (!client)
hBf = StartMessageAll("HudMsg");
else hBf = StartMessageOne("HudMsg", client);

if (hBf != INVALID_HANDLE)
{
BfWriteByte(hBf, channel); //channel
BfWriteFloat(hBf, x); // x ( -1 = center )
BfWriteFloat(hBf, y); // y ( -1 = center )

// second color
BfWriteByte(hBf, aRclr); //r1
BfWriteByte(hBf, aGclr); //g1
BfWriteByte(hBf, aBclr); //b1
BfWriteByte(hBf, aTclr); //a1 // transparent?

// init color
BfWriteByte(hBf, bRclr); //r2
BfWriteByte(hBf, bGclr); //g2
BfWriteByte(hBf, bBclr); //b2
BfWriteByte(hBf, bTclr); //a2

BfWriteByte(hBf, effect); //effect (0 is fade in/fade out; 1 is flickery credits; 2 is write out)
BfWriteFloat(hBf, fadein); //fadeinTime (message fade in time - per character in effect 2)
BfWriteFloat(hBf, fadeout); //fadeoutTime
BfWriteFloat(hBf, holdtime); //holdtime
BfWriteFloat(hBf, fxtime); //fxtime (effect type(2) used)
BfWriteString(hBf, szMsg); //Message
EndMessage();
}
}
__________________
"Every man is guilty of all the good he did not do"

Last edited by DiscoBBQ; 04-24-2007 at 16:56. Reason: smily face showed up using float:x
DiscoBBQ is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 04-24-2007 , 17:09   Re: [Question]Hudmsg
Reply With Quote #2

HUD messages are disabled in official Valve games. You can re-enable them by editing one of the config files..
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-24-2007 , 18:53   Re: [Question]Hudmsg
Reply With Quote #3

Thanks.. Happen to know which one to re-enable?
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-24-2007 , 19:02   Re: [Question]Hudmsg
Reply With Quote #4

The problem with that is that everyone would have to do the same.
sslice is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-24-2007 , 19:13   Re: [Question]Hudmsg
Reply With Quote #5

I see hud messages in mods and stuff.. Any possible way I could get it to be displayed?
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 04-24-2007 , 21:26   Re: [Question]Hudmsg
Reply With Quote #6

It's possible to enable it for yourself, but there's no way to fix it for every client that connects.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-25-2007 , 15:35   Re: [Question]Hudmsg
Reply With Quote #7

But like, how would you display ingame menus and stuff.. isnt that all hud stuff? like i see hud messages from mani admin plugins and such..?
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-25-2007 , 16:33   Re: [Question]Hudmsg
Reply With Quote #8

Those are ShowMenus.. different usermessage. There are examples on this forum, search for them.
sslice is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-26-2007 , 18:17   Re: [Question]Hudmsg
Reply With Quote #9

i have seen hud messages before through mani admin and other plugins, i cant recall specifics, but i have, probably the ones done through cpp.. though
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
BAILOPAN
Join Date: Jan 2004
Old 04-26-2007 , 20:52   Re: [Question]Hudmsg
Reply With Quote #10

No you haven't. You've seen white center print text, dialogs, or show menus.
__________________
egg
BAILOPAN 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 17:21.


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