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

Print to chat area...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 12-09-2004 , 18:05   Print to chat area...
Reply With Quote #1

How?
Its not eng->ClientPrintf(), because that prints to the console.
its not helpers->CreateMessage(), thats the upper left corner
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 12-09-2004 , 18:47  
Reply With Quote #2

I saw this somewhere, it was posted on hlcoders...
Johnny got his gun is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-09-2004 , 22:13  
Reply With Quote #3

yea but it required the use of c_baseplayer to do..... which isn't possible via a server plugin
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Eradicator
Junior Member
Join Date: Dec 2004
Location: Canada
Old 12-12-2004 , 02:57  
Reply With Quote #4

I have the same problem. There's engine->Con_NPrintf and engine->Con_NXPrintf which appear on the HUD and can change y position and color, but its completely useless as I can tell because it only seems to print on a listen server's host
Eradicator is offline
Send a message via MSN to Eradicator
Fruchtzwerg
Member
Join Date: Dec 2004
Old 12-13-2004 , 08:32  
Reply With Quote #5

Use SayText usermessage for this, it will show chat messages on screen.
__________________
Fruchtzwerg is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-13-2004 , 08:39  
Reply With Quote #6

do you have an example? I don't know how to send a "SayText" message, also is there a list of these messages somewhere?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-13-2004 , 08:41  
Reply With Quote #7

Quote:
Originally Posted by Fruchtzwerg
Use SayText usermessage for this, it will show chat messages on screen.
Yeah some kind of example would be great!

Any idea how to trap the say and say_team messages from the client?
BeetleFart is offline
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-13-2004 , 09:44  
Reply With Quote #8

Quote:
Originally Posted by Fruchtzwerg
Use SayText usermessage for this, it will show chat messages on screen.
I tried a usermessage
bf_write *pWrite;
pWrite = engine->UserMessageBegin((IRecipientFilter *)&mrf,1);
but cant get it to link, It cant find a lib for the bf_write.
BeetleFart is offline
Manip
Senior Member
Join Date: Jan 2004
Old 12-13-2004 , 10:48  
Reply With Quote #9

Don't waste your time.. I spend literally hours and got the bf_write to work and wrote a filter and at the end of it all, it crashes with a 'No UserMessage Given' error.
Manip is offline
Send a message via AIM to Manip
Fruchtzwerg
Member
Join Date: Dec 2004
Old 12-13-2004 , 11:38  
Reply With Quote #10

You have to include bitbuf.cpp into your makefile to get it working. And yes, usermessages are working fine.
__________________
Fruchtzwerg 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 14:37.


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