What it's suppose to do is list all the players USGN names and I think IP's who are in the server.
Does anyone know how to create it?
Thankyou.
General
LUA: @listusers
LUA: @listusers
1

addhook("say","_say")
function _say(id,message)
	if message=="@listusers" then
		msg2(id,string.char(169).."255255255List of Players ("..#player(0,"table")..")")
		msg2(id,string.char(169).."255255255-----")
		for _,pl in pairs(player(0,"table")) do
			msg2(id,string.char(169).."255255255"..player(pl,"name").." [#"..player(pl,"usgn").."]@"..player(pl,"ip"))
		end
		msg2(id,string.char(169).."255255255-----")
		return 1
	end
end
--Remember to paste the usgn_names here
	
addhook("say","_say")
function _say(id,message)
	if message=="@listusers" then
		msg2(id,string.char(169).."255255255List of Players ("..#player(0,"table")..")")
		msg2(id,string.char(169).."255255255-----")
		for _,pl in pairs(player(0,"table")) do
			if usgn_name[player(pl,"usgn")]~=nil then
				msg2(id,string.char(169).."255255255"..player(pl,"name").." [#"..player(pl,"usgn").."/"..usgn_name[player(pl,"usgn")].."]@"..player(pl,"ip"))
			else
				msg2(id,string.char(169).."255255255"..player(pl,"name").." [#"..player(pl,"usgn").."]@"..player(pl,"ip"))
			end
		end
	msg2(id,string.char(169).."255255255-----")
	return 1
	end
end
1
