PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: neechan on 27 September, 2004, 19:19:38

Title: anti clone script
Post by: neechan on 27 September, 2004, 19:19:38
all i need done is to exclude operators in this script

can someone please help me out ?

------
--Clone Alert 1.0
--by Mutor The Ugly
--PM Clone login to Opchat
--
--
OpChatName = frmHub:GetOpChatName()   --Use this line for inbuilt Px opchat
--OpChatName = "opschat"      --Use this line for a scripted opchat
 
function Main()
frmHub:EnableFullData(1)
end

function DataArrival(curUser,sdata)
local _,_, user1 = strfind(sdata,"$GetINFO%s+(%S+)%s+")
if user1 ~= curUser.sName then
   user1 = GetItemByName(user1)
      
      
if user1 ~= nil then
   if user1.sIP == curUser.sIP    then
      SendPmToOps(OpChatName, "*** Cloned user = "..curUser.sName.." logged in, User is a clone of = "..user1.sName)

   end
end
end
end
-----------------
Title:
Post by: nErBoS on 27 September, 2004, 23:37:19
Hi,

Here you have...

--Clone Alert 1.0
--by Mutor The Ugly
--PM Clone login to Opchat
--
--
OpChatName = frmHub:GetOpChatName() --Use this line for inbuilt Px opchat
--OpChatName = "opschat" --Use this line for a scripted opchat

function Main()
frmHub:EnableFullData(1)
end

function DataArrival(curUser,sdata)
local _,_, user1 = strfind(sdata,"$GetINFO%s+(%S+)%s+")
if user1 ~= curUser.sName then
user1 = GetItemByName(user1)

if user1 ~= nil then
if (not user1.bOperator) then
if user1.sIP == curUser.sIP then
SendPmToOps(OpChatName, "*** Cloned user = "..curUser.sName.." logged in, User is a clone of = "..user1.sName)

end
end
end
end
end

Best regards, nErBoS
Title:
Post by: neechan on 28 September, 2004, 10:35:07
cool thanks :D