Advanced mainlock
 

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

Advanced mainlock

Started by Northwind, 01 March, 2006, 16:04:49

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Northwind

Hi can some one of you advanced coders do script like this.

...for master profile
!lockmc  -- lock mainchat for all but master profile
!dlockmc -- open mainchat for vip/op and security coded unreg/regs

...for  unreg/reg user
<bot>This hub is running PtokaX DC Hub 0.3.4.0a [debug] Jan  5 2006 21:14:11 (UpTime: 2 days, 18 hours, 19 minutes)
<bot>Type security code: <rnd 5 number> to allow mainchat.


GeceBekcisi

You can use the MainLock script below and SpamKing.v2.1 with coordination and use
!startscript SpamKing.v2.1.lua and !stopscript SpamKing.v2.1.lua commands
for the same action ;)

But if you are lazy to work with them and really want the script you requested, I'll take
a look to modify SpamKing to suit your needs.

Best regards

-- ======================================================== --
--// MainLock by GeceBekcisi, 22.11.2005
-- ======================================================== --
sMainChatLock = nil
sBot = frmHub:GetHubBotName()
-- ======================================================== --
function ChatArrival(curUser, data)
	data = string.sub(data, 1, string.len(data)-1)
	if curUser.bOperator then
		local s,e,cmd,arg = string.find(data,"%b<>%s+(%S+)%s+(%S+)")
		if (cmd == "!mainchat") then
			if (arg == "off") then
				if sMainChatLock then
					curUser:SendData(sBot, "Main chat is already disabled for user access.")
				else
					SendToAll(sBot, "Temporarily main chat is disabled for user access.")
					sMainChatLock = 1
				end
			end
			if (arg == "on") then
				if sMainChatLock then
					SendToAll(sBot, "Main chat is now enabled for user access.")
					sMainChatLock = nil
				else
					curUser:SendData(sBot, "Main chat is already enabled for user access.")
				end
			end
			return 1
		end
	end
	if sMainChatLock then
		if curUser.bOperator then
			return 0
		else
			curUser:SendData(sBot, "Main chat is disabled for user access.")
			return 1
		end
	end
end
Do you need an advanced user handling script? Download UserBekcisi today (Latest Edit)
Features: User + ISP + GeoIP database, user info + share checking and many more...

Northwind

#2
Thank you, waiting for your modded version :)...


Northwind

gece is there any progress... :)


SMF spam blocked by CleanTalk