Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
Using Kick(playerid) in OnPlayerConnect will not close the connection. Instead, the player's client will try to reconnect the server, causing infinite kicking (if you have custom banning script).
Posts: 1,496
Threads: 78
Joined: Jun 2008
Reputation:
0
Sorry, I just forgot the thread..
Just for a note, I tried to use a timer to kick the player, and find that even a 0ms timer will not fix it. However, something like 3000-5000ms fixes the problem.
Also, there is no codes that can make he player reconnects instantly, unless it is an SA-MP bug.
Posts: 913
Threads: 70
Joined: Apr 2009
Reputation:
0
No problem.
But thanks for this idea, this works.
Not the best solution, because the player can join to the server, but works.
I hope this will be fixed in R3.
I can confirm this bug. But it's doesn't happened spontaneously. It's randomized.
Posts: 1,358
Threads: 89
Joined: Apr 2009
Reputation:
0
Confirmed. Happens randomly but often.
Posts: 577
Threads: 199
Joined: Aug 2010
Reputation:
0
Happened to me with my ban script, i had to put a timer on to delay the script from checking and kicking.
Posts: 399
Threads: 9
Joined: Dec 2010
Reputation:
0
I spent a few hours debuging my shit and turns out this was the problem -_- fix.
Posts: 449
Threads: 48
Joined: Jan 2010
Reputation:
0
Just use this OnPlayerRequestClass?