Reg only number of hubs checker
 

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

Reg only number of hubs checker

Started by catwo, 14 May, 2005, 16:06:48

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

catwo

Is it possible that a script will only check the number of hubs a registered user is in also if they are in more than e.g. 10 hubs then script sends user a message to reduce to the required number?  But the script doesnt check non registered users as they cant search and download anyway?  If it is possible can someone have a go at writing it for me please?  Thanks in advance for any info/help. ?

Dessamator

#1
-- Simple hub checker
--By Dessamator
bot=frmHub:GetHubBotName() 	--botname
hubs=10				--hubs a reg user is allowed in	
function NewUserConnected(user)
	if user.iHubs >hubs and user.bRegistered then
		user:SendPM(bot,"Registered users are only allowed to be in "..hubs.."hubs, please reduce that to the required number!")
	end
end


Done!
Ignorance is Bliss.

catwo

WOW! Dessamator many thanks for the quick reply i try it now many thanks for your time and efforts much appreciated. :D

Dessamator

QuoteOriginally posted by catwo
WOW! Dessamator many thanks for the quick reply i try it now many thanks for your time and efforts much appreciated. :D
no probs, it only took a few secs to do, :)
Ignorance is Bliss.

SMF spam blocked by CleanTalk