Forum




console command in editor
1 reply



--Given that you have downloaded the string.lua library
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
addhook("parse", "newcommands") function newcommands(text) 	text = text:split() 	cmd = text[1] 	text = table.remove(text, 1) 	 	trail = string.join(text, " ") 	 	if cmd == "mycommand" then 		msg(trail) 	end end



