PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: Impakto on 11 October, 2004, 19:43:43

Title: SeeIp
Post by: Impakto on 11 October, 2004, 19:43:43
A Script to see Ip of users on login!!!!!!!! Thanks
Title:
Post by: Herodes on 11 October, 2004, 21:00:03
There it is ...
--- show ip on user entry
--- by Herodes
--- request Impakto

NicktoSend = "Impakto" --- the default nick to sent the msg to ..
AllOps = 0 --- change this to 1 if you want all the ops to see it

function NewUserConnected(user)
if AllOps == 1 then
SendToOps(user.sName.." connected with IP "..user.sIP)
else
if GetItemByName(NicktoSend) then
GetItemByName(NicktoSend):SendData(user.sName.." connected with IP "..user.sIP)
end
end
end

OpConnected = NewUserConnected