Hello to all,
I need a scripts that block download from unreg users. But, allow search to all users
I search it here. But, I not found.
Thanks for the help :D.
Sorry my english :]
search some nonreg can download nonreg
i know it exists, i have contributed 2 it as well :)
Thanks men. :D.
I find it, but this script not alloe make search for the nonreg users.
Thisone does:
--## Made by [NL]Pur
--## Modded by nErBoS
arrRC = {}
function Main()
frmHub:EnableFullData(1)
end
function DataArrival(curUser, data)
if (strsub(data, 1, 15) == "$RevConnectToMe") then
local _,_,towho = strfind(data, "$RevConnectToMe%s+%S+%s+(%S+)|")
if (curUser.iProfile == -1 and GetItemByName(towho) ~= nil and GetItemByName(towho).iProfile ~= -1) then
curUser:SendData("<[BOT]PLAY> You can't download from regged users!")
return 1
else
arrRC[towho] = 1
end
elseif (strsub(data, 1, 12) == "$ConnectToMe" and curUser.iProfile == -1) then
local _,_,towho = strfind(data, "$ConnectToMe%s+(%S+)%s+.*|")
if (arrRC[curUser.sName] ~= nil) then
arrRC[curUser.sName] = nil
elseif (GetItemByName(towho) ~= nil and GetItemByName(towho).iProfile ~= -1) then
curUser:SendData("<[BOT]PLAY> You can't download from regged users!")
return 1
end
end
end
Bye