Jump to content

Question about force client to rejoin the server


bsrk

Recommended Posts

Posted

I want to make it so that when server restart. It will force all the client who online to rejoin the server.

and i see it in the wiki that when you use redirectPlayer with only the player parameter. You can force them to rejoin.

for i,player in ipairs(getElementsByType('player')) do redirectPlayer(player) end 

but i tried that out and got the argument error with redirectPlayer function.

Is there a way to force client to rejoin? Am I doing it work? or the only way to do this is to put the Server IP parameter?(If that's the case. I will just kick all the damn player out)

Thanks.

Posted

Unfortunately the feature doesn't work anymore for some reason. It worked fine before but hasn't been working since a few months ago.

There's no other way to reconnect a player afaik.

Posted

You can try to kick them and make the reason explain it to them

for _,v in ipairs(getElementsByType("player")) do 
      kickPlayer(v, "Sorry for that, Please rejoin the server .") 
end 

**NOTE : It'll need Admin rights ..!

Posted

OK, I will just kick them all for now. and If I have a time. I will try to make a simulate to when they first join.

Thank you for your reply.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...