Forum
 
  CS2D
 CS2D  Scripts
 
Scripts  Number Destroy Buildings
 Number Destroy Buildings Number Destroy Buildings
 Number Destroy Buildings
7 replies 
  1
 1  
 
And then if you are seriously bad-ass at typing links you'll be all liek, yo; www.cs2d.com/help.php?cat=all
edited 1×, last 07.05.13 09:41:45 pm
 Remulux wants to change. or at least tell me which is it.. apologies accepted
 Remulux wants to change. or at least tell me which is it.. apologies accepted   
 edited 1×, last 07.05.13 10:07:50 pm
I thought you could change the limit of buildings one may destroy. Seems as though I am wrong.
My most decent apologies and whatever
 
 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
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
teambuildinglimit = 5
killbuildingscount = {}
for i = 1,32 do
	killbuildingscount[i] = 0
end
addhook("join","_join")
function _join(id)
	killbuildingscount[id] = 0
end
addhook("startround","_startround")
function _startround()
	for i = 1,32 do 
		killbuildingscount[i] = 0
	end
end
addhook("objectkill","_objectkill")
function _objectkill(oid,id)
	local pl = object(oid,"player")
	if pl > 0 and player(pl,"exists") and player(pl,"team") == player(id,"team") then
		killbuildingscount[id] = killbuildingscount[id] + 1
		if killbuildingscount[id] == teambuildinglimit then
			parse("kill "..id)
			killbuildingscount[id] = 0
		end
	end
end
 
  1
 1  
 
 Offline
 Offline