Forum

> > CS2D > Scripts > admin help
Forums overviewCS2D overview Scripts overviewLog in to reply

English admin help

6 replies
To the start Previous 1 Next To the start

old admin help

minisparky
User Off Offline

Quote
umm with some admin scripts. i noticed that it had
Quote
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

old Re: admin help

Hador
User Off Offline

Quote
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)

old Re: admin help

Dovahkin
User Off Offline

Quote
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

old Re: admin help

Dovahkin
User Off Offline

Quote
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?

old Re: admin help

Yates
Reviewer Off Offline

Quote
user Dovahkin has written
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview