PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: blackwings on 06 March, 2005, 07:17:23

Title: modifiy this download blocker please !!
Post by: blackwings on 06 March, 2005, 07:17:23
can someone make so that this scripts allows non-regged/normal users to download from other non-regged/normal users, but still get blocked if they try to download from REG, VIPs and OPs-- disableStuff by Pur, 27-2-2005
-- 1 = ON   0 = OFF
-- modded by blackwings
dlregonly = 1;

disabledDownloadMsg = "unregistered users may not download"

function ConnectToMeArrival(curUser, Data)    
  if curUser.bRegistered==nil and dlregonly==1 then
   curUser:SendData(""..disabledDownloadMsg)
   return 1;
  end
end
       
function MultiConnectToMeArrival(curUser, Data)
  if curUser.bRegistered==nil and dlregonly==1 then
   curUser:SendData(""..disabledDownloadMsg)
   return 1;
  end
end        

function RevConnectToMeArrival(curUser, Data)
  if curUser.bRegistered==nil and dlregonly==1 then
   curUser:SendData(""..disabledDownloadMsg)
   return 1;
  end
end