"Reject Connection" Function
#1

Not sure if its possible but, would it be possible to Reject someones Connection.. So after 5 seconds he will automaticly reconnects.

As an example I will use when a Server is Full, it will say something like this (Every 5 seconds):
"Connecting 127.0.0.1:7777..."
"Server is Full, Connection Rejected."

And since I want LAST PLAYER SLOT to be for admins only, I don't want regular players to be kicked.. But to reject the connection so they will be able to reconnect every 5 seconds. Instead of getting kicked so they will have to manually reconnect which takes alot of time for themselfs. Or is there a some kind of function to let them reconnect in a certain ammount of time?

Thanks in Advanced,
Rolyy
Reply
#2

You can't reject a connection that's trying to connect. You can only kick that person once the connection is successful, which means the player basically connected and the script called OnPlayerConnect. To restrict someone from connecting you could develop a temporary ban/kick/block system.
Reply
#3

Quote:
Originally Posted by Krx17
Посмотреть сообщение
You can't reject a connection that's trying to connect. You can only kick that person once the connection is successful, which means the player basically connected and the script called OnPlayerConnect. To restrict someone from connecting you could develop a temporary ban/kick/block system.
Thank you for your reply.

But I am still wondering if this it is possible to make a player reconnect in any kind of way.
Quote:
Originally Posted by Rolyy
Посмотреть сообщение
And since I want LAST PLAYER SLOT to be for admins only, I don't want regular players to be kicked.. But to reject the connection so they will be able to reconnect every 5 seconds. Instead of getting kicked so they will have to manually reconnect which takes alot of time for themselfs. Or is there a some kind of function to let them reconnect in a certain ammount of time?
Thanks in Advanced,
Rolyy
Reply
#4

Once the player loses connection or anything else, you can't reconnect him back.
Reply
#5

Quote:
Originally Posted by EliranPesahov
Посмотреть сообщение
Once the player loses connection or anything else, you can't reconnect him back.
Okay then I am searching for something impossible .
Ahh well, thanks to both of you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)