clonebot help ..
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

clonebot help ..

Started by Fica, 03 November, 2004, 01:45:42

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fica

hello

can anyone tell me how can i make that the script dont check Op's ?

here is the scirpt:

BotName = "CloneBot"

OpChatName = "CloneBot"

function Main()
   frmHub:EnableFullData(1)
   frmHub:RegBot(BotName)
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 and Disconnected, User is a clone of = "..user1.sName)
            curUser:SendData(" Double Log-In not allowed here.. already a user connected in this Nick: "..user1.sName)
            curUser:SendData(" Your IP: "..user1.sIP)
            curUser:SendData(" Disconnecting you now! and Timeban 15 Min.!")
            curUser:Disconnect()
            curUser:TimeBan(15)
         end
      end
   end
end


Thank you

cheers

soory for my bad english :)

Fica

its workkkkk  8)

thank you  :D


cheers

VAZ

is it possible to make it like if an operator is connected to the hub but also wants to connect as an normal user  that it will not disconnect him.?

((UKSN))shad_dow

#3
hi

since it dont cheack ops , ops can login as normal users , it only cheacks vips/reg/ and normal users
which a vip cant login as a normal user when log in as a vip

yours

shad
creator of Therapy-X? bot

VAZ

ok but its not like that with masters or netfounders then?

Helper

#5
Hi,
I want to put in my own IP's who's not gonna be checked.
Can someone do this for me, please?
1 dag niet gelachen is 1 dag niet geleefd.

RoboCop? 10.01a Made by Optimus?

juda

Need leattle help !!!
Can someone change this script to send message
to me not to all operators in op chat...
It is a little anoying to other OPs...

          Thanks
juda

[_XStaTiC_]

#7
Change this line

SendPmToOps(OpChatName, "Cloned user = "..curUser.sName.." logged in and Disconnected, User is a clone of = "..user1.sName)


into

SendToNick("yournick", "Cloned user = "..curUser.sName.." logged in and Disconnected, User is a clone of = "..user1.sName)


and replace yournick in whatever the nick who will recieve this message

Sorry for my bad english :)

SMF spam blocked by CleanTalk