PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: CyberChris on 24 September, 2006, 16:24:23

Title: Search for a srcript...
Post by: CyberChris on 24 September, 2006, 16:24:23
Hi people , i search a script wo collect ip's user to a file .log

I use this , i've lot of ip in pm but not safe in file...
U can help me ?

function Main()
Bot = "IP-Bot"
end

function NewUserConnected(user)
SendPmToOps(Bot,"l'user :  "..user.sName..", viens de se connecte son Ip est:  "..user.sIP)
end

Sorry , my english is so bad !

respect ,
cyberchris
Title: Re: Search for a srcript...
Post by: Rincewind on 24 September, 2006, 16:34:32
Take a look at this (http://rincewind.magicprey.nl/download.php?view.126) and see if it suits your needs. It can be amended if you require.
Title: Re: Search for a srcript...
Post by: CyberChris on 24 September, 2006, 16:58:16
Not really but i've add my script to your at this section :
----------------------------------------------------------------------------
-- Function MAIN
----------------------------------------------------------------------------
function Main()
Bot = "IP-Bot"   
function NewUserConnected(user)
SendPmToOps(Bot,"l'user :  "..user.sName..", viens de se connecte son Ip est:  "..user.sIP)
   if tBots.tIPLog.sIsReg == 1 then
      frmHub:RegBot(tBots.tIPLog.sName,
            tBots.tIPLog.sIsReg,
            tBots.tIPLog.sDescription,
            tBots.tIPLog.sEmail)
   end
   
   LoadFile("Rincewind's IP Log/IPLog.txt")
   LoadFile("Rincewind's IP Log/UserLog.txt")
   
end
end

I've this message pm :
[2006-09-24 16:51] <?IP-Bot?> l'user :  USER , viens de se connecte son Ip est:  xx.xx.xx.xx
And it save in log.

work fine.

Thank for help Rincewind

Cyberchris