PDA

View Full Version : SAY_ALL


nevex22
03-14-2008, 06:27 AM
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, 06:43 PM
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, 05:03 AM
Yes

JediDog
03-17-2008, 04:40 PM
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