ID:273312
 
mob/verb/Test()
for(var/mob/M in world)
if(client.CheckPassport("BLABLA =D"))


I need to make that code Check all Users of the server and if that player is on the list of Subscriptions it autoadd without Relogin. Any idea?
Make it check when the mob logs in and add it to the list.
Was a second thread really needed?
Sorry, but what exactly did you have in mind when you used the term 'autoadd'? Add to what?
In response to Schnitzelnagler
Automatic Add
In response to Gohan Games
I am assuming you want to get all the subscribers key listed in the hub.

This is not quite possible with client.CheckPassport().I have made a feature request about this though I do not know the outcome.You cannot CheckPassport when the client is not available.

if my assumption is wrong then -----------

This must be what you need.
var/list/subscribers()
mob/Login()
if(client.CheckPassport("xzyzxsdfa"))
subscribers+=client.key
...
mob/Logout()
if(src.key in subscribers)
subscribers.Remove(src.key)
...
mob/proc/isSubbed1() // the laggy way - same as using client.CheckPassport directly
if(client.CheckPassport("xzyzxsdfa")
return 1
else return 0
mob/proc/isSubbed2() // the non laggy way
if(src.key in subscribers)
return 1
else return 0

In response to Gohan Games
Schnitzelnagler wrote:
(...)Add to what?

Gohan Games wrote:
Automatic Add

Add to what?