then it give the error:
Forum
CS2D General ATTENTION! Don't run maps you've downloaded!then it give the error:
DOWNLOAD
Info: It does not scan maps now. It only searchs for "other" files.
edited 1×, last 05.02.14 06:11:39 pm
DC Dont take this personal, but every Year,Months (dont know but Day) CS2D is getting Dangerous And people are leaving (i dont think you care or you do) cause of Hacks, I just wondering but are you going to update Cs2D every 2 year? for testing and stuff, BUT! only if you free to do so or when stranded III is released then you can?
anyway That was my opinion
btw.: There always were hackers and cheaters and there always will be. It's impossible to stop them. That's totally off-topic anyway.
This means that any Lua-coded protection is useless (I'm not sure about map scripts though)
Anyways, this would be my solution (if it'd work)
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
27
28
29
30
31
32
33
34
35
36
37
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
27
28
29
30
31
32
33
34
35
36
37
--stolen and modified from starkz local disable = { 	debug = {}, 	io = {}, 	timer = function() end, 	loadstring = function() end, 	addhook = function() end, 	os = { 		clock = os.clock, 		date = os.date, 		difftime = os.difftime, 		getenv = os.getenv, 		setlocale = os.setlocale, 		time = os.time 	} } addhook("triggerentity","trigger_if") function trigger_if(x,y) 	if entity(x, y, "typename") == "Trigger_If" then 		local backup = {} 		for k,v in pairs(disable) do 			backup[k] = _G[k] 			_G[k] = v 		end 		local status, value = pcall(loadstring('return '..entity(x, y, 'str0'))) 		for k,v in pairs(backup) do 			_G[k] = v 		end 		if status and value then 			parse('trigger '..entity(x, y, 'trigger')) 		elseif not status then 			error('entity('..x..','..y..'): '..value) 		end 		return 1 	end end
edited 2×, last 06.02.14 08:41:11 pm
Admin/mod comment
Added "addhook" to your disabled functions /StarkkzAnyway, I had another similar update but I forgot to put it here.
I haven't made the protection to timer, but I'll do it soon.