Jump to content

Question about force client to rejoin the server


bsrk

Recommended Posts

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.

Link to comment

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...