How to notify to an existed player when be disconnected

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

alexdao
Posts: 11
Joined: 30 Sep 2015, 13:44

How to notify to an existed player when be disconnected

Postby alexdao » 06 Nov 2015, 07:19

Dear all,
I have scenario:
I used an A account, login to a Gamezone successfully.
My friend also uses my A account login to this Gamezone. => My A account is disconnected. Friend 's A account login successfully.
Now, I want to receive an notification such as: "There is another player login using your account!!!" when my account is disconnected.

Please support!!!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to notify to an existed player when be disconnected

Postby Lapo » 06 Nov 2015, 09:39

Hi,
unfortunately this is not possible.
Also, in general this is bad practice. Accounts are personal and not meant to be used by multiple users for very obvious reasons.

Sorry
Lapo
--
gotoAndPlay()
...addicted to flash games
alexdao
Posts: 11
Joined: 30 Sep 2015, 13:44

Re: How to notify to an existed player when be disconnected

Postby alexdao » 09 Nov 2015, 01:57

Hi Lapo,
My case is quite similar to an Apple user can use the same account for many devices. Ex: I am playing on mobile and then I want to play on ipad immediately.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to notify to an existed player when be disconnected

Postby Lapo » 09 Nov 2015, 08:19

If it's the same user accessing from multiple devices, then it's okay. My point about the bad practice was sharing the account among different users.

If you are playing on your computer (for instance) and then switch to your smartphone you won't receive the message, you will just be kicked out from the other device.
I am not sure this is a problem though, because:

1) you know that you have logged from another device
2) if you're now playing on the smartphone you're not even looking at the computer

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Baidu [Spider] and 48 guests