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
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
Many Thanx Herodes :-)
I will give it a whirl later. I know it is a strange one ;-)
Cheers,
DJJ