how to send a message to a user after kick him

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Persy
Posts: 9
Joined: 20 Sep 2021, 18:52

how to send a message to a user after kick him

Postby Persy » 04 Oct 2021, 05:37

Hello
in my project I need to send a message to the kicked user 5 seconds After I kick him

I used setInterval

The only problem is what should I put for [user] in response


Can I replace it by chan? if yes how can I get the chan of kicked user by ip for example?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: how to send a message to a user after kick him

Postby Lapo » 06 Oct 2021, 08:24

Hi,
kicking means that a user is getting disconnected, so it's not possible to send a message to a disconnected user.
You should use a different approach where you first send the message to the user and the you kick him.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 41 guests