Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

SAY_ALL

Page: 1 of 1
 nevex22
03-14-2008, 6:27 AM
#1
If some player says something on server like:
player: msg , then I wonder how can I do same thing with this.

if ( Q_stricmp (p, "!test") == 0 )
{
trap_SendServerCommand( ent, va("print \"^5:[ ^7%s ^5]:\n\"", GAMEVERSION ));
}

What I want is instead of showing msg in console then it'll show it on left bottom conner where it also shows players msgs.
 JediDog
03-14-2008, 6:43 PM
#2
do u mean like in JA?
or do u mean like 'print' in the top right's style, but in the bottom left
 nevex22
03-16-2008, 5:03 AM
#3
Yes
 JediDog
03-17-2008, 4:40 PM
#4
meh, so u want it like in JA where client's msgs are shown

ok to be honest i don't really know how that works because this is Jedi Outcast forum, not JA :P

what i would do is just use the say cmd, i really dont know how the "trap_sendservercommand" functions work to well but i THINK it would be something like

trap_SendConsoleCommand(EXEC_INSERT, va("say\"^5:[ ^7%s ^5]:\n\"", GAMEVERSION));

that would be the easy way i think :P
if u want to, u can try the JA coding section because theres more people who reply on that 1 than this 1... and i dont think they even look on this 1 anyway :P
http://www.lucasforums.com/forumdisplay.php?f=539)
Page: 1 of 1