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
if string.sub(saycom[1], 1, 1)=="!" then --user commands
		saycom[1]=string.lower(saycom[1])
if saycom[1]=="@report" then
					if rankid[id] < 1 then msg2(id, Color(255, 0, 0), "ERROR: You do not have enough power to execute that command.") ; return 1; end
					if table.getn(saycom)==3 then
						if isnumber(saycom[2]) then
							saycom[2]=saycom[2]-1+1
								if player(saycom[2], "exists") then
									if saycom[2]==id then
										msg2(id, Color(255, 0, 0), "ERROR: You may not report yourself.")
										return 1
									else
										file2=io.open("/sys/www/reported.html", "a+")
										file2:write("<br>\n<br>\n"..os.date().."<br>\n"..player(id, "name").." ("..myname[id]..") IP: "..player(id, "ip").." USGN: "..myusgn[id].." REPORTED <br>\n"..player(saycom[2], "name").." IP: "..player(saycom[2], "ip").." USGN: "..myusgn[saycom[2]].."<br>\nReason: "..saycom[3])
										file2:close()
										msg(Color(255,255,255), player(id, "name").." used "..string.lower(message.."."))
										return 1
									end
								msg2(id, Color(255, 0, 0), "ERROR: Player does not exist.")
								return 1
								end
						else
							msg2(id, Color(255, 0, 0), "ERROR: Correct Syntax is @report [ID] [reason].")
							return 1
						end
					else
						msg2(id, Color(255, 0, 0), "ERROR: Correct Syntax is @report [ID] [reason].")
						return 1
		end
	end
end