• Print

Author Topic: Printing a Message in console to a Client who types a command in console  (Read 4139 times)

0 Members and 1 Guest are viewing this topic.

Offline Jaden Zepeda

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Code: Lua
  1. concommand.Add( "test", function( ply )
  2. if ( CLIENT ) then MsgC( Color( 255, 0, 0 ), "test" ) end
  3. end )
  4.  
That won't work, any ideas?

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Printing a Message in console to a Client who types a command in console
« Reply #1 on: December 24, 2014, 11:42:53 pm »
PrintMessage( HUD_PRINTCONSOLE, "test" )
or
print("test")

idek why you want this but ok..
Once you get to know me, you'll find you'll have never met me at all.

Offline Jaden Zepeda

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Printing a Message in console to a Client who types a command in console
« Reply #2 on: December 25, 2014, 12:19:31 pm »
Thanks, its for an easter egg, people get a hint to type that into console, then another hint prints on the screen.

  • Print