PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: D-J Valhala on 13 May, 2004, 08:26:54

Title: ViP Protect Scripd (Stand-alone)
Post by: D-J Valhala on 13 May, 2004, 08:26:54
hello all :)
i need a script to protect my ViP's in my hub i use Thr nErBoS "Brain-Master" and in there you dont have ViP protect... so if anyone of you can make it it will be GREAT!
10x :D
Title:
Post by: Corayzon on 13 May, 2004, 08:47:02
what exactly do you want to protect about the vips?
Title:
Post by: D-J Valhala on 13 May, 2004, 10:30:44
hehehehe high me ! :P
like OP's cant kick or kill ViP's :)
Title:
Post by: nErBoS on 13 May, 2004, 12:37:47
Hi,

Go to the Brain-Master code, and for this function...

function CheckProfile(user, whoto, data)
local time
if (whoto.iProfile == 0) then
time = 0
elseif (whoto.iProfile == 4) then
if(user.iProfile == 0) then
time = 1
else
time = 0
end
elseif (whoto.iProfile == 1) then
if(user.iProfile == 0 or user.iProfile == 4) then
time = 1
else
time = 0
end
else
time = 1
end
return time
end

put this one instead....

function CheckProfile(user, whoto, data)
local time = 0
if (whoto.iProfile == 0) then
time = 0
elseif (whoto.iProfile == 4) then
if(user.iProfile == 0) then
time = 1
end
elseif (whoto.iProfile == 1 or whoto.iProfile == 2) then
if(user.iProfile == 0 or user.iProfile == 4) then
time = 1
end
else
time = 1
end
return time
end

Best regards, nErBoS
Title:
Post by: D-J Valhala on 13 May, 2004, 16:44:04
hehe GREATR nErBoS your script is the best one !!! :)