English Console clear

15 replies
Goto Page
To the start Previous 1 Next To the start
12.06.13 03:27:20 pm
Up
limonata
User
Offline Off
Hello all, how i can clear game console?

like this

Code:
1
2
3
4
5
6
addhook("say","bla")
function bla(id,txt)
     if txt == "!quite" then
          console.clear()
     end
end


console.clear() --> i know its wrong, just example
12.06.13 03:30:56 pm
Up
Alistaire
User
Offline Off
Can't.
IMG:http://i.imgur.com/5zhwOTP.png
12.06.13 03:31:29 pm
Up
limonata
User
Offline Off
Okay.
12.06.13 04:19:15 pm
Up
Crabby
User
Offline Off
Well, if you want to clear the console just go to console click on right mouse and it will say clear console
12.06.13 05:00:21 pm
Up
Avo
User
Offline Off
Spam your console with strings with spaces.
More >

But it seems that Crabby's idea will work better.
Trust me, I'm an engineer | user DC approved file cs2d Super extra mod for CS2D (64), yeah!
12.06.13 05:12:15 pm
Up
UBMaster
BANNED
Offline Off
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
addhook("say","bla")
function bla(id,txt)
if txt == "!quite" then
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
end
end


an estimate.
13.06.13 11:33:27 am
Up
IRAN TOWN
User
Offline Off
> Right click on console and press 'Clear Console' .
13.06.13 11:59:01 am
Up
KagamineLen
User
Offline Off
user UBMaster has written:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
addhook("say","bla")
function bla(id,txt)
if txt == "!quite" then
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
print('  ')
end
end


an estimate.


an shorter code.

Code:
1
2
3
4
5
6
7
8
addhook("say","_say")
function _say(id,txt)
     if txt == "!quite" then
          for i = 1, 100 do
               print(' ')
          end
     end
end
13.06.13 12:14:47 pm
Up
UBMaster
BANNED
Offline Off
@user KagamineLen: yes, its very short.
13.06.13 01:03:57 pm
Up
limonata
User
Offline Off
oh, sure i just need a loop why i couldnt think this?

@user KagamineLen: Thanks
13.06.13 03:18:31 pm
Up
KimKat
GAME BANNED
Offline Off
Code:
addhook("say","c")
function c(p,t)
     if t=="!cls" then l=99 repeat l=l-1 print('') until l==0 end
end
A even shorter version, enjoy!
edited 3×, last 13.06.13 04:08:01 pm
13.06.13 03:20:38 pm
Up
limonata
User
Offline Off
@user KimKat: Very good

Edit: Doesnt work. No problem i can use another. Anyway thanks
13.06.13 03:25:36 pm
Up
sixpack
User
Offline Off
Code:
1
2
3
if(txt=="!clear")then
print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
end
13.06.13 03:28:09 pm
Up
limonata
User
Offline Off
Thanks all

And DaKnOb its good to see you again
13.06.13 03:28:59 pm
Up
KimKat
GAME BANNED
Offline Off
user limonata has written:
@user KimKat: Very good

Edit: Doesnt work. No problem i can use another. Anyway thanks
Lol, my code does work perfectly fine. It ran on this compiler perfectly fine, so it should run well in CS2D aswell undoubtedly. I just had to revise my posts a few times because I pasted the code in the wrong way. That's why you got error or what not.
13.06.13 06:06:01 pm
Up
Crabby
User
Offline Off
OR Just do what I said.
user Crabby has written:
Go to console click on right mouse and it will say clear console and click on clear console
To the start Previous 1 Next To the start