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

[Question]Hudmsg


Post New Thread Reply   
 
Thread Tools Display Modes
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-28-2007 , 19:49   Re: [Question]Hudmsg
Reply With Quote #11



isnt that a hud message?
__________________
"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-29-2007 , 00:46   Re: [Question]Hudmsg
Reply With Quote #12

Quote:
Originally Posted by Pinkfairie View Post


isnt that a hud message?
No, that's one of the menu's
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 04-29-2007 , 12:31   Re: [Question]Hudmsg
Reply With Quote #13

That looks like hint text. You can send Csay, Hint Text, menus, and console messages. You cannot send text that is positioned where you specify on the screen or change the color of text.
L. Duke is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-29-2007 , 16:22   Re: [Question]Hudmsg
Reply With Quote #14

alright thanks guys, do you know is there is any type of message that you can specify how long it stays up?
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 04-30-2007 , 10:13   Re: [Question]Hudmsg
Reply With Quote #15

I wish, since I was trying to do a timer.

I forgot one other message: the valve plugin message interface allows you to put a colored text message in the upper left corner of the screen. It has a "time" parameter, but doesn't allow you to specify anything less than 10 seconds.
L. Duke is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-30-2007 , 17:00   Re: [Question]Hudmsg
Reply With Quote #16

Dude duke, thats perfect, do you know the command for this or what it is called?
DiscoBBQ is offline
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Old 04-30-2007 , 21:51   Re: [Question]Hudmsg
Reply With Quote #17

I believe it is issued through 'CreateDialog' in SourceMod.

Edit:
I believe you would want something like...
Code:
new Handle:values = CreateKeyValues("msg");
KvSetString(values, "title", "This is a test message");
KvSetNum(values, "level", 1); // kind of a z-order if you will.. messages with lower values take precedent over messages with higher values
KvSetString(values, "time", 10); // seconds

CreateDialog(clientIndex, values, DialogType_Msg);

CloseHandle(values); // free up mem

Last edited by sslice; 05-01-2007 at 16:18.
sslice is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 05-01-2007 , 17:26   Re: [Question]Hudmsg
Reply With Quote #18

Thanks dude, your so smart

but it didnt work, maybe something on my part..

Code:
		new Handle:values = CreateKeyValues("testmsg","title","this is title");
		//KvSetString(values, "title", "This is a test message");
		KvSetString(values, "msg", "This is a test message");
		KvSetNum(values, "level", 1); // kind of a z-order if you will.. messages with lower values take precedent over messages with higher values
		KvSetNum(values, "time", 11);

		CreateDialog(client, values, DialogType_Msg);

		CloseHandle(values); // free up mem
you had CreateKeyValues("msg"); which didnt work, so i opened the include and looked, i opened the headerfile in sdk of the iserverplugins.h as well - not much help there either because the key values. i also tried creating it with the 4 diff dialog types as well as using createkeyvalues of ("msg","msg","msg"); which from what i understand would name the message being sent "msg", and make the key value of "msg" = "msg" so it would display "msg". but that didnt work either, go figure.

any suggestions to try? im just looking for that upper left hand corner display
DiscoBBQ is offline
Reply


Thread Tools
Display Modes

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


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