Forum

> > CS2D > Scripts > Fast build only for admins
Forums overviewCS2D overview Scripts overviewLog in to reply

English Fast build only for admins

2 replies
To the start Previous 1 Next To the start

old Fast build only for admins

Akuma Homura
User Off Offline

Quote
Hi, i need script for my server, fast and unlimited build only for admins (identify by us sgn) but for non admins only unlimited build

old Re: Fast build only for admins

GeoB99
Moderator Off Offline

Quote
Use this snippet of code below and replace the 5 line with a Fast Build script code from File Archive.
1
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
Make sure that it's compatible with this code so you won't get any issue.

old Re: Fast build only for admins

Talented Doge
User Off Offline

Quote
I'm feeling generous today because I got my Hetzer on WOT:
1
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview