i want every-second color
1
2
2
if level[id] == 1 then 							m(id,cmds.colors.""..math.random(100,999)..""..math.random(100,999)..""..math.random(100,999).."",player(id,"name").." [Admin]: "..message,1)
if level[id] == 1 then 							m(id,cmds.colors.""..math.random(100,999)..""..math.random(100,999)..""..math.random(100,999).."",player(id,"name").." [Admin]: "..message,1)
addhook("say","say_hook") RND=os.date("%S") for i=1,RND do color=math.random(100000000,255255255) end function say_hook(id,message) if level[id]==1 then msg2(id,"©"..color..player(id,"name").." [Admin]: "..message) return 1 end end
addhook("say","say_hook") addhook("second","second_hook") function second_hook() color=math.random(100000000,255255255) end function say_hook(id,message) if level[id]==1 then msg2(id,"©"..color..player(id,"name").." [Admin]: "..message) return 1 end end
--[[ 	math.randomseed(os.time()) 	The above code is not vital nor necessary since at least Lua version 5.2.1. 	Older Lua interpreters however do require it. --]] function b() 	--[[ 		Returns a bit sequence. 	--]] 	local r=math.random(0,255) 	if(r>=0 and r<=9)then r='00'..r 	elseif(r>=10 and r<=99)then r='0'..r 	elseif(r>=255)then r='000' end 	return tostring(r) end function c() 	--[[ 		Returns bit sequences as a whole. 	--]] 	return(b()..b()..b()) end addhook("say","s") function s(p,t) if (player(p,"exists")) then --[[ Checks if player exists. --]] if (t) then --[[ Colorizes each chat message. --]] msg("©"..c()..""..player(p,"name").."©090090090: ©220220220"..t) return 1 end end end
addhook("second","ChangeColor") function ChangeColor() 	color="" 		for i=1,3 do 		color=string.lower(math.random(0,2)..math.random(0,5)..math.random(0,5))..color 		end end addhook("say","onSay") function onSay(p,t) 	msg("©"..color..player(p,"name")..": "..t) 	return 1 end
color=string.lower(math.random(0,2)..math.random(0,5)..math.random(0,5)..math.random(0,2)..math.random(0,5)..math.random(0,5)..math.random(0,2)..math.random(0,5)..math.random(0,5))
color=(string.sub(math.random(1000000000,1255255255),2,10))