Double loginredictor v1.0
 

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

Double loginredictor v1.0

Started by [NL]Daddy-Bear?, 16 September, 2006, 23:03:26

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[NL]Daddy-Bear?

So I hope a nice script
A script for getting users out the hub which logs in twice.

And:  !!
Tthe User will be redict to a hub what is in advance given up
So he stays in the network.  ;)

Have Fun.
[NL]Daddy-Bear?

--------------------------------------------------------------------------------

-- **************************************************************************************
-- 		Double loginredictor v1.0 by NL]Daddy-Bear? on 16 Sept. 2006
--		with thanks to a friend for his help.
--		LUA 5.0/5.1 version

--		Users with same ip get redict to a hub what is in advance given up
-- **************************************************************************************

--		Which profile YOU want give a redict  1=yes 0=no  
  
RedProfiles = {	  
[0] = 0,			-- Master  
[1] = 0,			-- Operator  
[2] = 0,			-- VIP  
[3] = 0,			-- Registered  
[4] = 0,			-- Moderator  
[5] = 0,			-- Netfounder
[6] = 0,			-- Owner  
[-1] = 1,			-- Unregistered  
} 

Bot = "Ip_redictor"  
  
function Main()  
	frmHub:RegBot(Bot)  
end

-- **************************************************************************************  
  
--		      			>>>>>>>>>> The Data. <<<<<<<<<<<  
  
-- **************************************************************************************
   
--	the redict hub bla bla hub no-ip.org:58475 below chance it in the correct address of the hub to redict to.
--	(same as in Ptotax when hub is full recommended)

sredicthub = ("hub bla bla hub no-ip.org:58475")


sNaam = ("\r\n\r\n                                          ********        Double Login is not allowed!!!        ********\r\n\r\n                                                     You are Redict to a other nice hub.\r\n\r\n                                  take a look in ower Network type in main !network there is more!!\r\n\r\n")

redictstart = 0 	-- Yust a counter do not change it!
aanOp = 1   		-- send message to Ops  1=yes 0=no


-- **************************************************************************************

--			change nothing here under

-- **************************************************************************************

NewUserConnected = function(user,sdata)
online = frmHub:GetUsersCount()
	for _,Nick in pairs(frmHub:GetOnlineUsers()) do
	if RedProfiles[user.iProfile] == 1 then
					redictstart = redictstart + 1    
					local txt = ""..user.sName.." at this moment redicted he had logged in with double Ip. Users at this moment online "..online.."  of maximum "..frmHub:GetMaxUsers().." since lua have been starting on redict  "..redictstart..""
				if aanOp == 1 then  
					SendPmToOps(frmHub:GetHubBotName(),txt)  				   				  
				end
				user:Redirect(sredicthub,sNaam); break     
			end     
		end   
	end

???????????? Lets enjoy our Hobby ??????????

dchub://daddys-friends-association.no-ip.org:4106

take a peek you are welcome :D

Herodes

nice try
I sorry to be a party-breaker but there are more than one scripts that do this thing,..
search around,.. I think this is the most complete( #1, #2).

SMF spam blocked by CleanTalk