BadShare
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

BadShare

Started by 6Marilyn6Manson6, 22 December, 2004, 14:09:53

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

6Marilyn6Manson6

I have this scripts..... but.. not found:


BadShare = 11534336	-- Bad Share Value
BanTime = 1440	--In minutes

msg = "\r\n\r\n\tBad share value detected!\r\n"
msg = msg.."\tYour share [ "..format("%.2f GB",BadShare /(1024 * 1024 * 1024)).." ] is unacceptable\r\n"
msg = msg.."\tYour banned for [ "..BanTime.." ] minutes.\r\n\r\n"

function DataArrival(user,data)
	if strsub(data, 1,7) == "$MyINFO" then
		local s,e,share = strfind(data, "(%d+)%$%|$")
			if tonumber(share) ==  BadShare then
				user:SendData(msg)
				user:TimeBan(BanTime)
			end
	end
end



why? thanks a lot

blackwings

don't understand your problem , please explain more :)

and a small tip marilyn, use [*CODE]YOUR CODE[*/CODE]   (without the *), it makes it easier for everyone to look at the code etc.


6Marilyn6Manson6

#2
QuoteOriginally posted by blackwings
don't understand your problem , please explain more :)

and a small tip marilyn, use [*CODE]YOUR CODE[*/CODE]   (without the *), it makes it easier for everyone to look at the code etc.

now is ok but..script not found :C

Typhoon

use a CDM client for that , much better and more acurate


and why waste resources on the hub when clients can do it ;o)


Typhoon?



6Marilyn6Manson6

I use iDC++ but.. in my hub for script use DC++ and i have login of mldonkey and... with this script.. i want stop it.. is it possible? what is error? thanks a lot

Typhoon

#5
hi MM

use this one for a try ..

if strfind(user.sMyInfoString, "mldonkey", 1, 1) or strfind(user.sMyInfoString, "replika", 1, 1) or strfind(user.sMyInfoString, "pepek", 1, 1) or strfind(user.sMyInfoString, "mldc", 1, 1) then 
		user:SendData(BotName, "All mlDonkey traces cause disconnection ... begone foul swine ... |") 
		user:Disconnect()
		return 1
	end


hope you figure it out ;o)


Typhoon?



SMF spam blocked by CleanTalk