"Reject Connection" Function - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: "Reject Connection" Function (
/showthread.php?tid=273964)
"Reject Connection" Function -
Rolyy - 04.08.2011
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
Re: "Reject Connection" Function -
Krx17 - 04.08.2011
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.
Re: "Reject Connection" Function -
Rolyy - 05.08.2011
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
Re: "Reject Connection" Function -
Toreno - 05.08.2011
Once the player loses connection or anything else, you can't reconnect him back.
Re: "Reject Connection" Function -
Rolyy - 05.08.2011
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.