can anyone make me a script which shows the top used direct connect softwares
eg
+topdcs
there are 10 users using dc++
there are 10 users using odc
blah blah blah :]
can anyone make me this script :(
hmm, indeed it shouldnt be hard , but its not 100% effective most users use dcs which emulate dc++, so ull probably end up with a lot of dc++ users !
--Client Stats By Dessamator
tClients = {}
BotName = "Client_Stats"
function ChatArrival(user,data)
local s,e,cmd = string.find(data,"%b<>%s+(%S+)|")
local temp = " Top Dcs On The hub\r\n\t"..string.rep("><",20).."\r\n\t"
if cmd == "!topdc" then
for i,usr in frmHub:GetOnlineUsers() do
if not tClients[usr.sClient] then
tClients[usr.sClient] = {}
tClients[usr.sClient]["count"] = 1
elseif tClients[usr.sClient] then
tClients[usr.sClient]["count"] = tClients[usr.sClient]["count"] + 1
end
end
for client,table in tClients do
temp = temp.."Client Name : "..client..", Users : "..tClients[client]["count"]
end
tClients = {}
user:SendData(BotName,temp)
end
end
Done !