lfnetwork.com mark read register faq members calendar

Thread: SAY_ALL
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 03-14-2008, 06:27 AM   #1
nevex22
Lurker
 
Join Date: Mar 2008
Posts: 3
SAY_ALL

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.
nevex22 is offline   you may: quote & reply,
Old 03-14-2008, 06:43 PM   #2
JediDog
Rookie
 
JediDog's Avatar
 
Join Date: Jan 2008
Location: Florida
Posts: 16
do u mean like in JA?
or do u mean like 'print' in the top right's style, but in the bottom left
JediDog is offline   you may: quote & reply,
Old 03-16-2008, 05:03 AM   #3
nevex22
Lurker
 
Join Date: Mar 2008
Posts: 3
Yes
nevex22 is offline   you may: quote & reply,
Old 03-17-2008, 04:40 PM   #4
JediDog
Rookie
 
JediDog's Avatar
 
Join Date: Jan 2008
Location: Florida
Posts: 16
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

Code:
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
JediDog is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JO Coding > SAY_ALL

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 Off
HTML code is Off

Forum Jump


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

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.