AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Print to chat area... (https://forums.alliedmods.net/showthread.php?t=36877)

devicenull 12-09-2004 18:05

Print to chat area...
 
How?
Its not eng->ClientPrintf(), because that prints to the console.
its not helpers->CreateMessage(), thats the upper left corner

Johnny got his gun 12-09-2004 18:47

I saw this somewhere, it was posted on hlcoders...

Geesu 12-09-2004 22:13

yea but it required the use of c_baseplayer to do..... which isn't possible via a server plugin

Eradicator 12-12-2004 02:57

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 :(

Fruchtzwerg 12-13-2004 08:32

Use SayText usermessage for this, it will show chat messages on screen.

Geesu 12-13-2004 08:39

do you have an example? I don't know how to send a "SayText" message, also is there a list of these messages somewhere?

BeetleFart 12-13-2004 08:41

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 12-13-2004 09:44

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.

Manip 12-13-2004 10:48

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.

Fruchtzwerg 12-13-2004 11:38

You have to include bitbuf.cpp into your makefile to get it working. And yes, usermessages are working fine.


All times are GMT -4. The time now is 09:46.

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