Can somebody make that this script doesn't working for turrets?
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
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
local pie = {} pie[1] = { price = 300 } pie[2] = { price = 500 } pie[3] = { price = 1000 } pie[4] = { price = 2000 } pie[5] = { price = 3000 } pie[6] = { price = 1500 } pie[7] = { price = 5000 } pie[8] = pie[7] pie[9] = pie[7] pie[13] = pie[5] pie[14] = pie[5] function build_hook(id, type, x, y) if not pie[type] then return 0 end parse("spawnobject " ..type.. " " ..x.. " " ..y.. " 90 1 " ..player(id, "team").. " " ..id) local capitalism = player(id,"money") - pie[type]["price"] parse("setmoney " ..id.. " " ..capitalism) return 1 end addhook("build","build_hook")
Thanks!