Forum

> > CS2D > Scripts > Console clear
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Console clear

15 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Console clear

limonata
User Off Offline

Zitieren
Hello all, how i can clear game console?

like this

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

alt Re: Console clear

Crabby
User Off Offline

Zitieren
Well, if you want to clear the console just go to console click on right mouse and it will say clear console

alt Re: Console clear

Avo
User Off Offline

Zitieren
Spam your console with strings with spaces.
Mehr >

But it seems that Crabby's idea will work better.

alt Re: Console clear

UBMaster
BANNED Off Offline

Zitieren
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.

alt Re: Console clear

KagamineLen
User Off Offline

Zitieren
user UBMaster hat geschrieben
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.

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

alt Re: Console clear

KimKat
GAME BANNED Off Offline

Zitieren
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!
3× editiert, zuletzt 13.06.13 16:08:01

alt Re: Console clear

KimKat
GAME BANNED Off Offline

Zitieren
user limonata hat geschrieben
@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.

alt Re: Console clear

Crabby
User Off Offline

Zitieren
OR Just do what I said.
user Crabby hat geschrieben
Go to console click on right mouse and it will say clear console and click on clear console
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht