1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
admin = {}
mod = {}
vip = {}
color = {
	[1] = "©224224224",
	[2] = "©096096096",
	[3] = "©255192203",
	[4] = "©150075000",
	[5] = "©245245220",
	[6] = "©032096255",
	[7] = "©192000000",
	[8] = "©000255111"
}
addhook("serveraction","_serveraction")
addhook("join","_join")
function _serveraction(id,b)
	if b==1 then
		menu1check(id)
	end
end
function menu1check(id)
	for _, usgn in ipairs(vip) and (mod) and (admin) do
		if player(id,'usgn') == usgn then
			for _, usgn in ipairs(admin) do
				if player(id,'usgn') == usgn then
					adminmenu(id)
				end
			end
			for _, usgn in ipairs(mod) do
				if player(id,'usgn') == usgn then
					modmenu(id)
				end
			end
			for _, usgn in ipairs(vip) do
				if player(id,'usgn') == usgn then
					vipmenu(id)
				end
			end
		else
		usermenu(id)
		end
	end
end
function adminmenu(id)
menu(id,"Admin Menu,Server Options,Users,Confg")
end
function modmenu(id)
menu(id,"Moderator Menu,Server Options,Users,Confg")
end
function vipmenu(id)
menu(id,"VIP Menu,Confg")
end
function usermenu(id)
menu(id,"User Menu,Commands")
end
function _join(id)
msg2(id,color[8].."Welcome on "..game("sv_name").." , "..player(id,'name').."!")
end