Forum

> > CS2D > Scripts > admin help
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch admin help

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt admin help

minisparky
User Off Offline

Zitieren
umm with some admin scripts. i noticed that it had
Zitat
adminlist = {}
if (player(id, "usgn")==ID)

umm for admin dont know what its for plz help on a
example so i know what to do or what i fill
(lua noob i know)
thank you from the
RNB clan

alt Re: admin help

Hador
User Off Offline

Zitieren
umm, it depends on the script. Umm but I suppose that umm you shoud put in the USGN IDs of the admins on your Server in the brackets, with a "," inbetween.
something lile this:

1
2
adminlist ={ 1,9662 }
if player(id, "usgn")==ID)

alt Re: admin help

Dovahkin
User Off Offline

Zitieren
This is the full it will work and its not confusing!

1
2
3
4
5
6
7
8
9
10
11
12
adminlist={43653} --ur usgn

addhook("serveraction","lol")
function lol(id,a)
	for _,usgn in ipairs (adminlist) do
		if player(id,'usgn') == usgn then
			if a==1 then
				menu(id,"lol,lol")
			end
		end
	end
end

alt Re: admin help

Dovahkin
User Off Offline

Zitieren
FN_Linkin Park, they cant understand that they dont even know how to make a admin script and that site is learn lua the hard way?

alt Re: admin help

Yates
Reviewer Off Offline

Zitieren
user Dovahkin hat geschrieben
FN_Linkin Park, they cant understand that they dont even know how to make a admin script and that site is learn lua the hard way?

Because the site is not based on cs2d at all. Just lua programming.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht