Script for Vip, Op, Master ranks
 

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

Script for Vip, Op, Master ranks

Started by bisturi, 29 October, 2004, 14:37:01

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bisturi

I dont know what will you think about this idea but  it just came into my mind and i thought may be someone here can help me. I was thinking of a script that can make sort of ranking for users in hub for example: when there are MASTER, OP-s, VIP-s, USERS in a hub and  all of them are waiting in que to a certain user for an open slot, the one that has the precedens to get the slot first is Master and so on till to the User.  
I dont know if this is possible but just give me a answer.
THNX
Owner of Tirana UnderGround Hub.
Running the best script ever RoboCop 9.0b

Herodes

the free slots are taken on a first-come-first-served basis ..
there is no way this can be changed ...
we can only stop someone trying to get a slot (/download blocker)
other than that ,... I repeat there is no way to dictate a client who will download from it ....

bisturi

Thnx Herodes. That was just an idea it came in my mind.
Owner of Tirana UnderGround Hub.
Running the best script ever RoboCop 9.0b

kazi

Isn't it possible to make a script like this:

unregged users can only dl from unregged users,

regged users only from Unregged,  regged and vips,

and vips from unregged, regged, vip and ops?

Psycho_Chihuahua

@kazi use the search for that
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

kazi

#5
well of coz i did that, i found a script but its only working when u are regged u can dl of anyone. it s not that specified.

function Main()
	frmHub:EnableFullData(1)
Levels = {Master = "1",Operator = "1",VIP = "1",Reg = "0",Default = "0"}
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("*** Only VIPS are 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("*** Only VIPS are able to download from an OP")
		        end 
        return 1 
    end 
end
function isEnabled(profile)
    ret = "0"
    if profile then
        for i, v in Levels do        
            if ( i == profile ) then
                ret = v
            end
        end
end
end

wondering if there can be created more levels i.e. master 3, vip 2, reg1 and unregged 0  
i tried it but hen scrip doesnt work anymore. also no when i change he ==-1 into -3 or -2  

i think when i change the levels i have to create for each level the script?

SMF spam blocked by CleanTalk