OP's ONLY - Page 2
 

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

OP's ONLY

Started by Daywalker, 22 December, 2004, 00:25:06

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Daywalker

oops  :D

my mistake.....is fixed now  8)

i've set the minimum hubcount for OP at 2 tnx to ZeroX for the idea
Get in the night....Walk out the day :evil:

my hubs:
****v^^v**UNITED OP\'s**v^^v****
operators-lounge.servebeer.com:412
******************************
wdp9.no-ip.info:511
nl-dc-hub-2.no-ip.org

bolamix

Right, the other shoe finally dropped, I now understand Daywalker's idea. I thought it was ludicrous as I can't see why ops together would behave more nicely than users together.
But I'm willing to give it a try, I've given this some thought and I might very well have been wrong to laugh ^^ I'll drop by that "ops-only" hub some time :)
Sharing is of the essence!

Live music >> Aiwadirock! live music hub
PtokaX knowledge >> The PtokaX Wiki

Daywalker

I'm glad u think it's not stupid after all  8)

drop by whenever u think u can...the door is open..now...gehehe

btw.....Merry Xmas u all  :))
Get in the night....Walk out the day :evil:

my hubs:
****v^^v**UNITED OP\'s**v^^v****
operators-lounge.servebeer.com:412
******************************
wdp9.no-ip.info:511
nl-dc-hub-2.no-ip.org

Madman

--//TagChecker Made By Madman
--//Stripped From -Dark-Mind- Made By ?
--//And Ofcourse Modded By Madman =)
--//Modded To OpOnly
--//Small changes by Optimus
--//Some Stuff Added By Madman

Bot = "OpOnly"
NrOpHub = 2 --//Minimum Number Of OpHubs
SendInfo = 1 --//Send Info On Connect

function DataArrival(curUser,data)
	if (strsub(data,1,7)=="$MyINFO") then
		s,e,OpHubs = strfind(data,"$MyINFO $ALL.*,H:%d+/%d+/(%d+)")
		if s then
			if (tonumber(OpHubs) < NrOpHub) then
				curUser:SendData(Bot, "You are not op in " ..NrOpHub.. " hubs. You are being disconnected.")
				curUser:Disconnect()
			end
		else
			curUser:SendData(Bot, "I cant check your hubs. You are being disconnected.")
			curUser:Disconnect() 
		end
	end
end

--//The Info On Connect ;p
function OpConnected(curUser)
	if SendInfo==1 then
		curUser:SendData(Bot, "Hi, " ..curUser.sName.. " you are Op in " ..OpHubs.. " hubs. The minimum number of ophubs allowed is " ..NrOpHub)
	end
end
I was bored...
I really need something to do...
maybe go out and look for that thing they call life?
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Madman

--//TagChecker Made By Madman
--//Stripped From -Dark-Mind- Made By ?
--//And Ofcourse Modded By Madman =)
--//Modded To OpOnly
--//Small changes by Optimus
--//Some Stuff Added By Madman
--//+1 If User Is Op In This Hub
--//Redir Options Requested By Daywalker
--//MOTD Will Be Shown When Redirecting
--//Nothing We Can Do About It
--//Thanks For The Help LUA Hub Tho...
--//To See If Anything Could Be Done

Bot = "OpOnly"
NrOpHub = 2 --//Minimum Number Of OpHubs
SendInfo = 1 --//Send Info On Connect
DisRedir = 1 --//Disconnect = 1, Redirect = 0
Addy = "Put Redir Addy Here"

function DataArrival(curUser,data)
	if (strsub(data,1,7)=="$MyINFO") then
		s,e,OpHubs = strfind(data,"$MyINFO $ALL.*,H:%d+/%d+/(%d+)")
		if s then
			if (tonumber(OpHubs) < NrOpHub) then
				if DisRedir==0 then
					curUser:SendData(Bot, "You are not op in " ..NrOpHub.. " hubs. You are being redirected.")
					curUser:SendData(Bot, "Redirecting to: "..Addy.."|$ForceMove "..Addy.."|")
				elseif DisRedir==1 then
					curUser:SendData(Bot, "You are not op in " ..NrOpHub.. " hubs. You are being disconnected.")
					curUser:Disconnect()
				end
			end
		else
			curUser:SendData(Bot, "I cant check your hubs. You are being disconnected.")
			curUser:Disconnect() 
		end
	end
end

--//The Info On Connect ;p
function NewUserConnected(curUser)
	if SendInfo==1 then
		if curUser.bOperator then
			--//Added +1 To This Line Beacuse It Dosent Count Your Hub
			curUser:SendData(Bot, "Hi, Op " ..curUser.sName.. " you are Op in " ..(OpHubs+1).." hubs. The minimum number of ophubs allowed is " ..NrOpHub)
		elseif not curUser.bOperator then
			curUser:SendData(Bot, "Hi, " ..curUser.sName.. " you are Op in " ..OpHubs.. " hubs. The minimum number of ophubs allowed is " ..NrOpHub)
		end
	end
end

OpConnected = NewUserConnected

Here is another update.... =)
Unfortnaly nothing can be done about the MOTD when Redirecting
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Daywalker

the script works great  :))

tnx to madman
Get in the night....Walk out the day :evil:

my hubs:
****v^^v**UNITED OP\'s**v^^v****
operators-lounge.servebeer.com:412
******************************
wdp9.no-ip.info:511
nl-dc-hub-2.no-ip.org

bolamix

Well I fell prey to that script, tried to connect whereas I'm op in only one hub... I'll have to find a second hub to be op in ;)
Sharing is of the essence!

Live music >> Aiwadirock! live music hub
PtokaX knowledge >> The PtokaX Wiki

SMF spam blocked by CleanTalk