Reg to download from op's
 

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

Reg to download from op's

Started by DirTyDogG, 19 December, 2006, 17:27:58

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DirTyDogG

Can u make like this that only registered users can download from op's ? ???

bastya_elvtars

For instance, this could easily be modded to suit your needs.
Everything could have been anything else and it would have just as much meaning.

DirTyDogG

I know this script , but it would be very nice that anybody create a script that blocks unregistered users to download from OP's only  :-\

Naithif

Try this one
Modified (one function line) from this one: http://forum.ptokax.org/index.php?topic=5750.0


-- XferBot 1.0 LUA 5
--
-- by Mutor  12/03/05
--
-- Requested by Pablo.zz
--
-- Blocks file transfers from registered users to unregistered users.
-- Allows transfer between unregistered users
--

-- botname pulled from the hub or "Custom" name"
BlockBotName = "[XferBot]" --frmHub:GetHubBotName(),
--
--End User Settings-------------------------------------------------------------

Main = function()
	if BlockBotName ~= frmHub:GetHubBotName() then
		frmHub:RegBot(BlockBotName, 1, "Transfer Filter", "")
	end
end

CheckArrival = function(user, data)
    if user.iProfile == -1 then
    	local other = ""
    	local s,e,activeother = string.find(data,"$ConnectToMe%s+(%S+)")
    	local s,e,passiveother = string.find(data,"^$RevConnectToMe%s+%S+%s+(%S+)|$")
    	if activeother then
    		other = GetItemByName(activeother)
    	elseif passiveother then
		other = GetItemByName(passiveother)
	end
    	if other ~= "" or other ~= nil then
		if other.bOperator then
			local reply = "\r\n\r\n\tSorry "..user.sName..",\r\n"..
			"\tUnregistered users may not dowload files from operators.\r\n"..
			"\tYou may only download from non-operator users.\r\n"..
			"\tPlease clear this transfer from your download queue.\r\n"..
			"\tOtherwise you will continue to receive this message\r\n\r\n"
			user:SendData(BlockBotName, reply)
			user:SendPM(BlockBotName, reply)
    			return 1
    		end
    	end
    end
end

ConnectToMeArrival = CheckArrival
RevConnectToMeArrival = CheckArrival
MultiConnectToMeArrival = CheckArrival

DirTyDogG


SMF spam blocked by CleanTalk