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
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
tspawns={}
ctspawns={}
addhook('startround','test_startround')
function test_startround()
for x=1,map("xsize") do
	for y=1,map("ysize") do
		if tile(x,y,"spawn_t") then
			t='"{x="'..x..'",y="'..y..'"}"'
			table.insert(tspawns,(#tspawns+1),t)
		elseif tile(x,y,"spawn_ct") then
			ct='"{x="'..x..'",y="'..y..'"}"'
			table.insert(ctspawns,(#ctspawns+1),ct)
		end
	end
end
end
tspawn=math.random(0,#tspawns)
ctspawn=math.random(0,#ctspawns)
addhook('say','test_say')
function test_say(p, t)
if t=='!revive' then
	if player(p,"money") > 7999 then
		if player(p,"team")==1 then
		parse('spawnplayer '..p..' '..(tspawns[tspawn].x)..' '..(tspawns[tspawn].y))
		parse('setmoney '..p..' '..(player(p,'money')-8000))
		elseif player(p,"team")==2 then
		parse('spawnplayer '..p..' '..(ctspawns[ctspawn].x)..' '..(ctspawns[ctspawn].y))
		parse('setmoney '..p..' '..(player(p,'money')-8000))
		elseif player(p,"team")==3 then
			msg2(p,"You are a spectator, you cannot be revived.")
		end
	else
		msg2(p,"You do not have enough money, you need $8000 to be revived.")
	end
end
end
yeah.. Someone revise it
Lua Scripts/Questions/Help


Offline
Need war 3 ft ( warcraraft 3 ) Lua Script .
(Fixed it up again)