Forum
CS2D Scripts Number Destroy BuildingsNumber Destroy Buildings
7 replies 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 11:41:45 pm
edited 1×, last 08.05.13 12:07:50 am
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