All commands are written by the menus table.
1
2
3
4
5
6
7
menus["Show USID"]=function(id)
	if player(id,"usgn")==0 then
		return vsa.err_color.."You are not signed in a USGN account."
	else
		return vsa.rsp_color.."Your USID is "..player(id,"usgn").."."
	end
end
It's pretty simple to self-explain. As for a harder command to explain such as "Ban IP".
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
menus["Ban IP"]=function(id2)
local tmp={}
local tmp2={}
local tmp4={}
	for _,id in ipairs(player(0,"table")) do
		if player(id,"ip")==player(id2,"ip") then
			tmp3="("..player(id,"name")..")|YOURSELF - "..player(id,"ip")
		elseif player(id,"bot") then
			tmp3="("..player(id,"name")..")|BOT"
		elseif player(id,"ip")=="0.0.0.0" then
			tmp3="("..player(id,"name")..")|HOST"
		else
			tmp3=player(id,"name").."|"..player(id,"ip")
		end
		table.insert(tmp,tmp3)
		table.insert(tmp2,function(id2,text,name,ip)
					if player(id2,"ip")==player(id,"ip") then
						return vsa.err_color.."You may not ban your own IP from the server."
					elseif player(id,"ip")=="0.0.0.0" then
						return vsa.err_color.."You may not ban the host's IP from the server."
					else
					msg2(id2,string.char(169)..vsa.con_color.."Are you sure you want to ban "..name.."'s IP from the server?@C")
					tmp4={"Yes|Ban - "..ip,"No|Exit"}
					tmp5={function(id3)
							if player(id,"exists")==false or ip~=player(id,"ip") then
								msg(string.char(169)..vsa.rsp_color..player(id3,"name").." banned "..name..".")
								msg2(id3,string.char(169)..vsa.rsp_color.."Name: "..name)
								msg2(id3,string.char(169)..vsa.rsp_color.."IP: "..ip)
								parse("banip "..ip)
								return vsa.wrn_color..name.." has left the game, however their IP was still banned from the server."
							else
								msg(string.char(169)..vsa.rsp_color..player(id3,"name").." banned "..player(id,"name")..".")
								msg2(id3,string.char(169)..vsa.rsp_color.."Name: "..player(id,"name"))
								msg2(id3,string.char(169)..vsa.rsp_color.."IP: "..player(id,"ip"))
								parse("banip "..id)
								return vsa.suc_color..name.." was banned from the server."
							end
						end,
						function()
						end}
						return {tmp4,tmp5}
					end
				end)
		table.insert(tmp4,{player(id,"name"),player(id,"ip")})
	end
	return {tmp,tmp2,tmp4}
end
Well, I'm not going to bother because no one reads this anyway.