Forum

> > CS2D > Scripts > how make when admin
Forums overviewCS2D overview Scripts overviewLog in to reply

English how make when admin

2 replies
To the start Previous 1 Next To the start

old how make when admin

Kantos
BANNED Off Offline

Quote
how to do like adminList = {12345} what who in admin list when they join they wear hat ? srr for my english

old Re: how make when admin

MikuAuahDark
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
adminList = {12345}
table{}	-- used for image id

addhook("spawn","kerisjawa")
function kerisjawa(id)
	for k, v in ipairs(adminList) do
		if v==player(id,"usgn") then
			table[id]=image("imagepath",1,0,200+id,0)
		end
	end
end

addhook("die","pedangjenawi")
function pedangjenawi(id)
	for k, v in ipairs(adminList) do
		if v==player(id,"usgn") then
			freeimage(table[id])
		end
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview