PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: JaPaja on 12 November, 2006, 21:33:02

Title: Active vs. passive , exception
Post by: JaPaja on 12 November, 2006, 21:33:02
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
Title: Re: Active vs. passive , exception
Post by: TTB on 13 November, 2006, 09:34:20
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
Title: Re: Active vs. passive , exception
Post by: 6Marilyn6Manson6 on 13 November, 2006, 09:43:51
Exist other numerouses script of this request. Search its in forum