PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: b_w_johan on 22 June, 2005, 19:29:01

Title: logging (in/out) history check
Post by: b_w_johan on 22 June, 2005, 19:29:01
[18:59] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just entered !
[19:01] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just left !
[19:01] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just entered !
[19:02] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just left !
[19:07] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just entered !
[19:09] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just left !
[19:09] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just entered !
[19:11] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just left !
[19:12] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just entered !
[19:26] <[BOT]Guard> The Operator [OP][NL]-BlAcKrIdEr- Just left !



this happens ..
and i want to make it check in "history"
so when user connects his line shows up and when he logs out it shown to but if he logins within XXXXminutes then do not show the login
same with logout .....


anyone ideas for this ?? requested before but never got reply then

Greetings Johan
Title:
Post by: ??????Hawk?????? on 22 June, 2005, 19:54:47
hi m8
 
Try working with something like this..
--//  function User / op disconnected

tIntroDelay[user.sName] = os.clock()



--//  function  user / op connected

If not tIntroDelay[user.sName] then
          (   your Intro Code here )
end



activate something like this at a timed period ( something lower than the delay time )

local iClock = os.clock()
for usr, time in tIntroDelay do
if (tonumber(iClock) - tonumber(time) > 600) then  --//  ( 10 mins )
tIntroDelay[usr] = nil
end



??????Hawk??????