REG and VIP can only...
 

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 and VIP can only...

Started by blackwings, 13 August, 2004, 15:46:20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blackwings

Could someone make a script so that only VIP's and regged users can download from Ops??

I mean, everyone should be able to dl from each other, but only VIP's and regged users can download from Ops.


plop

QuoteOriginally posted by blackwings
Could someone make a script so that only VIP's and regged users can download from Ops??

I mean, everyone should be able to dl from each other, but only VIP's and regged users can download from Ops.
search a bit, it's allready posted here on the board in several versions.
ok maby you need 2 change some of the userlevel checks in the script.

just a question: are OP's holly or something that only regged/vip's may download from them???

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

imby

ops are Gods and should not be burdened by peasants downloading off them!

Herodes

QuoteOriginally posted by imby
ops are Gods and should not be burdened by peasants downloading off them!
lol :D

blackwings

#4
QuoteOriginally posted by plop
search a bit, it's allready posted here on the board in several versions.
ok maby you need 2 change some of the userlevel checks in the script.

just a question: are OP's holly or something that only regged/vip's may download from them???

plop

I have searched, saw a thread made by chilla and there was a interesting script there, but it didn't work :(

I tested this script, but it doesn't always work. Noticed that if a OP first try to dl from the unregged user, and when the unregged user try to dl from that OP, he can dl:S I dunno if it's the script or if it's because that it me testing with two clients, so it sees both om my clients as the same user.

function Main()
	frmHub:EnableFullData(1)
end

function DataArrival(curUser, data)
	if (strsub(data, 1, 15) == "$RevConnectToMe" and curUser.iProfile == -1) then
		local _,_,towho = strfind(data, "$RevConnectToMe%s+%S+%s+(%S+)|")
		if GetItemByName(towho) and GetItemByName(towho).bOperator then
			curUser:SendData("*** You must get registered to be able to download from an OP")
			return 1
		end
	elseif (strsub(data, 1, 12) == "$ConnectToMe" and curUser.iProfile == -1) then
		local _,_,towho = strfind(data, "$ConnectToMe%s+(%S+)%s+.*|")
		if GetItemByName(towho) and GetItemByName(towho).bOperator then
			curUser:SendData("*** You must get registered to be able to download from an OP")
			return 1
		end
	end
end


blackwings

Can someone just confirm if the code I posted is ok and add so that unregged user can't download from VIP's either?


[G-T-E]Gate?

Jo blackwings
 I got this script made for me by [NL]Pur,
It gives u the possibility to set the profiles that can download from. Normal users cant download or see share from Master ,Operator ,VIP  and Reg .
 
To allow the normal users to see and download frpom mentioned profiles place a 0 for yes and 1 for no ,,,  Master , OPs VIP Reg can see and download from eachother..

Good Luck  It Works to 100%
Enjoy And credits to [NL]Pur
Regards G8

function Main() 
    
frmHub:EnableFullData(1

    
Levels = {
        
Master "1",
        
Operator "1",
        
VIP "1",
        
Reg "1",
        Default = 
"0"
    
}

end 

function DataArrival(curUserdata


    if (
strsub(data115) == "$RevConnectToMeand curUser.iProfile == -1then 
        local _
,_,towho strfind(data"$RevConnectToMe%s+%S+%s+(%S+)|"

        if 
isEnabled(GetProfileName(GetItemByName(towho).iProfile))=="1" then 
            curUser
:SendData("*** You must get registered to be able to download from Me so contact a person with [G-T-E] Tag to get Registered")     
        
end 

        
return 

    
elseif (strsub(data112) == "$ConnectToMeand curUser.iProfile == -1then 
        local _
,_,towho strfind(data"$ConnectToMe%s+(%S+)%s+.*|"
        
        if 
isEnabled(GetProfileName(GetItemByName(towho).iProfile))=="1" then 
            curUser
:SendData("*** You must get registered to be able to download from Me so contact a person with [G-T-E] Tag to get Registered")     
        
end 

        
return 
    end 

end 


function isEnabled(profile)
    
ret "0"
    
if profile then
        
for iv in Levels do        
            if ( 
== profile then
                ret 
v
            end
        end
    end
    
return ret
end

blackwings

Hmm, I didn't want to make so that unregged users get 100% blocked.

Here is how I wanted it to work =
Master = Can dl from everyone
Operators = Can dl from everyone
VIP = Can dl from everyone
REG = Can dl from everyone
Non-REG/Normal user = Can only dl from REG

This is the settings I use in the script [G-T-E]Gate? posted, to make the script do what I wanted, but it didn't work in the way I wanted =

   Levels = {
        Master = "1",
        Operator = "1",
        VIP = "1",
        Reg = "0",
        Default = "0"
    }


SMF spam blocked by CleanTalk