PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: bastya_elvtars on 07 April, 2005, 02:45:47

Title: ServerStats
Post by: bastya_elvtars on 07 April, 2005, 02:45:47
Purely useless... did not test for bugs, but enjoy it, my last script for long time. :(

function ChatArrivaluser,data)
data=string.sub(data,1,string.len(data)-1)
local _,_,cmd=string.find(data,"%b<>%s+(%S+)")
if cmd=="!serverstats" then
os.execute("NET STATISTICS SERVER >> C:\tmpfil.fil')
local f=io.open("C:\tmpfil.fil","r")
local msg=""
if f then
for line in f:lines() do
msg=msg..line.."\r\n"
end
f:close()
else
msg=msg.."Cannot retrieve server statistics."
end

end
end
Title:
Post by: Stravides on 07 April, 2005, 21:26:17
y is it yer lasty script then ?
Title:
Post by: bastya_elvtars on 07 April, 2005, 23:23:09
QuoteOriginally posted by Stravides
y is it yer lasty script then ?

I have many things to do... returning in end of April or in May.
Title:
Post by: dkt on 07 April, 2005, 23:52:46
Hey what is the use of this script ?
Title:
Post by: bastya_elvtars on 07 April, 2005, 23:55:47
QuoteOriginally posted by bastya_elvtars
Purely useless...
Title:
Post by: Typhoon on 08 April, 2005, 08:48:44
QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by bastya_elvtars
Purely useless...

 I totally agree lol ..

but learned a new dos command by testing the script :p

 
Typhoon?