Forum

> > CS2D > Scripts > Fast build only for admins
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Fast build only for admins

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Fast build only for admins

Akuma Homura
User Off Offline

Zitieren
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

alt Re: Fast build only for admins

GeoB99
Moderator Off Offline

Zitieren
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.

alt Re: Fast build only for admins

Talented Doge
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht