Forum
CS2D Scripts fast buildfast build
2 replies 1
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
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
addhook("buildattempt","FUBuild") addhook("objectupgrade","FUpgrade") function FUBuild(p,t,x,y,i) if t==20 or t==21 then return 0 end parse('spawnobject '..t..' '..x..' '..y..' 0 0 '..player(p,"team")..' '..p) return 1 end function FUpgrade(i,p,g,t) t=object(i,"type") if t==1 then t=3 elseif t==3 then t=4 elseif t==4 then t=5 elseif t==8 then t=11 elseif t==11 then t=12 elseif t==9 then t=15 end n=player(p,"team") x=object(i,"tilex") y=object(i,"tiley") r=object(i,"rot") m=object(i,"mode") d=object(i,"player") parse("killobject "..i) parse("spawnobject "..t.." "..x.." "..y.." "..r.." "..m.." "..n.." "..p) return 1 end
1