PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: Pablo.zz on 08 November, 2005, 17:33:03

Title: User use Netlimiter ? Block him Download
Post by: Pablo.zz on 08 November, 2005, 17:33:03
Sorry for me bad english guys i am from Czech Republik,
can someone create a script in lua5 named Netlimiter DownBlock ?

I need this
When a user is connected and use netlimiter,
no kicks no bans, just block download :)
Can someone make it ?

Message:
U are using netlimiter, please disable him and then can u download...


 :D
Title:
Post by: Northwind on 09 November, 2005, 02:02:51
if its possible then it make security issue...

...and best for all that cant be done IMO
Title: Nice to hear it
Post by: Pablo.zz on 09 November, 2005, 08:59:16
If can be done if..  :D

i know. Mutor. And respect man  ;)

One more thing

I have this old script netlimiter
but she gives to user timeban.
Maybe convert ?
Replace the ban direction, whit a downblocker.

thx for reply
 ;)

Quote-- antinetlimiter for QuikThinker by bastya_elvtars
-- to LUA 5 converted on Earth
todo=2 -- 1 to disconnect, 2 to timeban, 3 to ban
timeban=60 -- in minutes

-- no edit below plz

OpConnected=NewUserConnected
function MyINFOArrival(curUser,data)
   if curUser.sConnection then
      if string.find(string.lower(data),"netlimiter") then
         local what,doin=hasto(curUser)
         curUser:SendData("Reno_Raines","Pouzivas netlimitera ktery je zde zakazan / You are using NetLimiter (netlimiter is here not akcepted !, now you are "..what)
         SendToOps("Reno_Raines","*** Detekovan Netlimiter uzivatel "..curUser.sName.." znicen ...")
         return doin
      end
   end
end

function hasto(curUser)
   if todo == 1 then
      return "disconnected.",curUser:Disconnect()
   elseif todo == 2 then
      return " papa na "..timeban.." minut.",curUser:TimeBan(timeban)
   elseif todo == 3 then
      return "banned.",curUser:Ban()
   end
end

Title: Wow
Post by: Pablo.zz on 10 November, 2005, 10:09:39
Thanks Mutor,

Respect.
Title: Tested
Post by: Pablo.zz on 11 November, 2005, 21:08:56
100% working

many thank's mutor