Hum.. Login with a Share MSG
 

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

Hum.. Login with a Share MSG

Started by nEgativE, 14 March, 2004, 03:53:54

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nEgativE

Hi there, is it possible to do a login message that contains the user actual share ? something like this:

[123GB] user has just entered the Hub.

in this case, just 100 GB (up) users will activate the message, and for 200 Gb also.

TkS in Advance.


nErBoS

Hi,

Hope it helps..

--Requested by Luso
--Made by nErBoS

Bot = "W-BShare"

bigusers = "100" --The min share of big users in GB

function Main()
	frmHub:RegBot(Bot)
end

function NewUserConnected(user, data)
	local s,e,share = strfind(user.sMyInfoString, "%$%s*(%d+)%$") 
	share = format("%0.2f", tonumber(share)/(1024*1024*1024))
	if (share >= bigusers) then
		SendToOps(Bot, "The user "..user.sName.." has joined in the Hub with "..share.." GB.")  --Only Send to ops
	end
end

Best regards, nErBoS
--## nErBoS Spot ##--

nEgativE

#2
QuoteOriginally posted by nErBoS
Hi,

Hope it helps..

--Requested by Luso
--Made by nErBoS

Bot = "W-BShare"

bigusers = "100" --The min share of big users in GB

function Main()
	frmHub:RegBot(Bot)
end

function NewUserConnected(user, data)
	local s,e,share = strfind(user.sMyInfoString, "%$%s*(%d+)%$") 
	share = format("%0.2f", tonumber(share)/(1024*1024*1024))
	if (share >= bigusers) then
		SendToOps(Bot, "The user "..user.sName.." has joined in the Hub with "..share.." GB.")  --Only Send to ops
	end
end

Best regards, nErBoS

Yes, that's what i want :)

But i got this --> The user [PT]Nick has joined in the Hub with 39.60 GB.

Hehe.. could it be 100 GB min. and also a way to have another min. of 200 and 1 TB. TkS nErBoS !!

PS: are the operators also check 100 GB ? :)

[NL]Pur

you can easily use the ptokax settings to change the min share too 100gb.

nEgativE

QuoteOriginally posted by [NL]Pur
you can easily use the ptokax settings to change the min share too 100gb.

???

nErBoS

Hi,

Sorry Luso my bad, made also to OPs..

--Requested by Luso
--Made by nErBoS

Bot = "W-BShare"

bigusers = "100" --The min share of big users in GB

function Main()
	frmHub:RegBot(Bot)
end

function NewUserConnected(user, data)
	local s,e,share = strfind(user.sMyInfoString, "%$%s*(%d+)%$") 
	share = format("%0.2f", tonumber(share)/(1024*1024*1024))
	if (tonumber(share) >= tonumber(bigusers)) then
		SendToOps(Bot, "The user "..user.sName.." has joined in the Hub with "..share.." GB.")  --Only Send to ops
	end
end

OpConnected = NewUserConnected

Best regards, nErBoS
--## nErBoS Spot ##--

SMF spam blocked by CleanTalk