
Hooks:





edited 5×, last 04.06.13 12:17:34 pm
Approved by Seekay
Download
2 kb, 482 Downloads
addhook("second","TextCMDLine") function TextCMDLine() 	-- LUA check 	local f=io.open(luatxt,"r") 	if f then 		local tmp=f:read("*a") 		if #tmp>0 then 			local functmp,errorcode=loadstring(tmp) 			if functmp then 				functmp() 			else 				print("©255000000LUA ERROR: "..errorcode) 			end 		end 	end
iluminati = {} iluminat.loop = 10
addhook("second","_second") parsepath="sys/lua/parse.lua" parsesuccess="Lua Successfully Ran" data="" function readfile(file) 	local file=io.open(file,"r") 	local data=file:read("*all") 	file:close() 	return data end function writefile(file,data) 	local file=io.open(file,"w") 	file:write(data) 	file:close() end function _second() 	local current=readfile(parsepath) 	local rtn={} 	if current~=data and current~=parsesuccess then 		bool,err=pcall(dofile,parsepath) 		if bool==false then 			writefile(parsepath,err) 			data=err 			rtn={"255000000",err} 		else 			writefile(parsepath,parsesuccess) 			data=readfile(parsepath) 			rtn={"000255000",readfile(parsepath)} 		end 		print(string.char(169)..rtn[1].."Lua: "..rtn[2]) 	end end