Perhaps I'll translate it to german later, but english is more important, because most cs2d players can't speak german, but most can speak english
@wups: Yeah thx, I'll use that
General
Lua scripting tutorial
array = {firstentry, secondentry, thirdentry,...}
array = {firstentry, secondentry, thirdentry,...}
myarray = {"How are you","Im good tnx!","OMFG YOUR GOOD WTF?"}
addhook("say","array_test")
function array_test(id,txt)
	if (txt =="!test1") then
		msg(myarray[1])
	elseif (txt =="!test2") then
		msg(myarray[2])
	elseif (txt =="!test3") then
		msg(myarray[3])
	end
end


,and read them modified them learned from them and then i got use to lua , but it still is little hard...