PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: DJJoker on 03 March, 2005, 18:23:49

Title: Non reg script
Post by: DJJoker on 03 March, 2005, 18:23:49
Hi everyone,

I am quiet new to this lua scripting thing and I was just wondering if there was anyway to create a script to stop users entering my hub while they are in public hubs.

I understand though this would be heavily dependant on the client used.

But it seems as simple as checking a users "tag" for the hubs which they are connected too and kicking / disconnecting any users which are in hubs for which they are not registered !

i hope this makes sense to somebody :-)

Cheers,
DJJ
Title:
Post by: Herodes on 04 March, 2005, 17:39:31
Very unhealthy for your hubs population in my opinion, but here you go...
--- NoWhereElsePlease by Herodes (4-3-2005)
--- requested by DJJoker
--- No other guest hubs in the hubs that run this 1...

function NewUserConnected(user)
if user.iNormalHubs then
if user.iNormalHubs>0 then
user:SendData( "NoOther", "Sorry you cant be accepted because you are in other hubs as a guest...")
end
end
end
Title:
Post by: DJJoker on 04 March, 2005, 22:32:15
Many Thanx Herodes :-)

I will give it a whirl later. I know it is a strange one ;-)

Cheers,
DJJ