but lua run , but not 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
addhook("say","say")
function say(id,txt)
	if (txt=="!t") and player(id,"usgn") == 20157 then
		me = 1
		msg2(id,' door : '..me..' ')
	elseif (txt=="!t2") and player(id,"usgn") == 20157 then
		me = 2
		msg2(id,' door : '..me..' ')
	elseif (txt=="!t3") and player(id,"usgn") == 20157 then
		me = 3
		msg2(id,' door : '..me..' ')
	end
end
addhook("second","godie")
function godie()
for id = 1,32 do
	if me == 1 then
	local x = player(id,"x")
	local y = player(id,"y")
		if x == 96 and y == 832 then
			parse("setpos "..id.." 224 960")
		elseif x == 320 and y == 768 then
			parse("killplayer "..id)
		elseif x == 224 and y == 864 then
			parse("killplayer "..id)
		end
	end
	if me == 2 then
	local x = player(id,"x")
	local y = player(id,"y")
		if x == 96 and y == 832 then
			parse("killplayer "..id)
		elseif x == 224 and y == 864 then
			parse("setpos "..id.." 224 960")
		elseif x == 320 and y == 768 then
			parse("killplayer "..id)
		end
	end
	if me == 3 then
	local x = player(id,"x")
	local y = player(id,"y")
		if x == 96 and y == 832 then
			parse("killplayer "..id)
		elseif x == 224 and y == 864 then
			parse("killplayer "..id)
		elseif x == 320 and y == 768 then
			parse("setpos "..id.." 224 960")
		end
	end
end
end
Error lua , help!
1 
Offline