Spoiler
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
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
if (txt:sub(1,1) == "@" or txt:sub(1,1) == "!") and txt ~= "rank" then 			if cmd == cmds.pm[1] then 				if level[id] >= cmds.pm[2] then 					local pl = tonumber(p[2]) 					local pmsg = string.sub(txt,(string.len(cmds.pm[1])+1+string.len(pl)+1),#txt) 					if pl ~= nil and pmsg ~= nil then 						if player(pl,"exists") then 							if id ~= pl then 								m(pl,"235143041",player(id,"name").." (PRIVATE): "..pmsg,2) 								m(id,"235143041","Your message has been succesfully sent to "..player(pl,"name"),2) 							else 								m(id,"255000000","You can't send a private message to yourself!",2) 							end 						else 							noe(id) 						end 					else 						csyntax(id,"@pm ID MSG") 					end 				else 					noadm(id) 				end 			elseif cmd == cmds.say[1] then 				if level[id] >= cmds.say[2] then 					local message = string.sub(txt,(string.len(cmds.say[1])+2),#txt) 					if message ~= nil then 			if level[id] == 1 then 							m(id,cmds.colors.member,player(id,"name").." [Member]: "..message,1) elseif level[id] == 2 then 							m(id,cmds.colors.Scripter,player(id,"name").." [VIP]: "..message,1) 						elseif level[id] == 3 then 							m(id,cmds.colors.mod,player(id,"name").." [Mod]: "..message,1) 						elseif level[id] == 4 then 							m(id,cmds.colors.gm,player(id,"name").." [Admin]: "..message,1) 						elseif level[id] == 5 then 							m(id,cmds.colors.admin,player(id,"name").." [Admin]: "..message,1) 						elseif level[id] == 6 then 							m(id,cmds.colors.Scripter,player(id,"name").." [Scripter]: "..message,1) 						end 					else 						csyntax(id,"@say MSG") 					end 				else 					noadm(id) 				end
1
say = {"@say",1,"MSG (min level: member)","Says a message with your rank's color"},