Active vs. passive , exception
 

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

Active vs. passive , exception

Started by JaPaja, 12 November, 2006, 21:33:02

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JaPaja

Hi everybody,

can anybody help me with this script?
I need to inbuilt in this script exception for some users. I want make in PtokaX special profile for users, that will not have need to be active.

I have this profiles:

REG - registered users
DISC - no share
VIP - very important users
VVIP - very very important users, exception
PAS - exception for active, exception
COOP - cooperates, exception
OP - operator, exception
MASTER - master, exception

Maybe in future I should have more profiles.
Can someone do it for me?

Thanks lot

TTB

Hi...

First of all you need to think about how you gonna config this. You can set more profiles on a certain userlevel (and recognize them by prefix or what so ever).  I created a little script for you (not tested). It will check on USERLEVEL (profiles table). If you did create more userlevels, you can config them easely by adding them to the table ([6] and more)... G00d Luck!
-- Little active config userlevel script by TTB
-- Requested by JaPaya
-- 13th of nov. 2006
------------------------------------
--------------------------
-- Settings
tSetBotName = "Hl?da?"        
msg1 = "Pro vstup na hub mus?? b?t ACTIVE!"

-->> The profiles who should be active
Profiles = {
[-1] = 1,  -- Users
[0] = 0,   -- Masters
[1] = 0,   -- OPs
[2] = 0,   -- VIPs
[3] = 1,   -- REGs
[4] = 0,   -- MODs
[5] = 0,   -- Founders
}

-- Check users who log in
NewUserConnected = function(user, data)
  if not user.bActive and Profiles[user.iProfile] == 1 then
    user:SendData(tSetBotName,msg1)
    user:Disconnect()
    return 1
  end
end

NewUserConnected = OpConnected
TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

6Marilyn6Manson6

Exist other numerouses script of this request. Search its in forum

SMF spam blocked by CleanTalk