Forum
CS2D Scripts Fast build only for adminsFast build only for admins
2 replies 1
1
2
3
4
5
6
7
2
3
4
5
6
7
Admins = {} for _, i in ipairs(Admins) do 	if i == player(id, "usgn") then 		-- Fast Build code here 	end end
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
addhook("buildattempt", "_build") admin = {} function _build(p, t, x, y, m) 	for _, i in ipairs(admin) do 		if player(p, "usgn") == i then 			parse ("spawnobject "..t.." "..x.." "..y.." 0 "..m.." "..player(p, "team").." "..p) 			return 1 		else return 0 		end 	end end
1