PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: NemeziS on 15 March, 2005, 17:26:59

Title: Open new hub on connecting.
Post by: NemeziS on 15 March, 2005, 17:26:59
Hi!

I've heard about a script that can open new hub window (or connect to another hub in a new window)  on command !hub

Is it possible? (lua4 wanted)

Thanx a lot.

NemeziS
Title:
Post by: Herodes on 15 March, 2005, 17:30:04
Nope,... its not possible if you want you may redirect connecting users but I can't think of any way to make'em go in another hub while staying at the one they were entering ...
Title:
Post by: NemeziS on 15 March, 2005, 17:36:14
But can I redirect all the users (except the users with specified IPs) when the enter the hub?

Best regards,
NemeziS
Title:
Post by: Herodes on 15 March, 2005, 17:40:28
QuoteOriginally posted by NemeziS
But can I redirect all the users (except the users with specified IPs) when the enter the hub?

Best regards,
NemeziS
sure ...
 Here is a quicky one ..tIps = { ["127.0.0.1"] = 1, }
Address = "another.hub.org"
Reason = "No Reason As Of Now"
function NewUserConnected (user)
if not tIps[user.sIP] then user:Redirect(Address, Reason) end
end
OpConnected = NewUserConnected
Title:
Post by: NemeziS on 15 March, 2005, 19:48:25
Thanx, I'll try it out soon  ;)

Best regards,
NemeziS