PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: catwo on 14 May, 2005, 16:06:48

Title: Reg only number of hubs checker
Post by: catwo on 14 May, 2005, 16:06:48
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. ?
Title:
Post by: Dessamator on 14 May, 2005, 16:22:12
-- 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!
Title:
Post by: catwo on 14 May, 2005, 16:45:08
WOW! Dessamator many thanks for the quick reply i try it now many thanks for your time and efforts much appreciated. :D
Title:
Post by: Dessamator on 14 May, 2005, 19:06:39
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, :)