bsrk Posted March 5, 2013 Share Posted March 5, 2013 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
myonlake Posted March 5, 2013 Share Posted March 5, 2013 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. Link to comment
PaiN^ Posted March 5, 2013 Share Posted March 5, 2013 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 ..! Link to comment
bsrk Posted March 5, 2013 Author Share Posted March 5, 2013 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now