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
admin = {1}
mod = {55555}
vip = {12345}
local rnd1 = math.random(0,255)
local rnd2 = math.random(0,255)
local rnd3 = math.random(0,255)
local color =("0"):rep(3-#rnd1)..rnd1..("0"):rep(3-#rnd2)..rnd2..("0"):rep(3-#rnd3)..rnd3
addhook("say","coloredtext")
function coloredtext(id,txt)
	for k,v in ipairs(admin) do
		if player(id,"usgn") == v then
			msg("©255255255Admin "..player(id,"name").." : ©"..color.." "..txt)
			return 1
		end
	end
	for k,v in ipairs(mod) do
		if player(id,"usgn") == v then
			msg("©255255255Moderator "..player(id,"name").." : ©"..color.." "..txt)
			return 1
		end
	end
	for k,v in ipairs(vip) do
		if player(id,"usgn") == v then
			msg("©255255255Very Important Person "..player(id,"name").." : ©"..color.." "..txt)
			return 1
		end
	end
end