Kick in OnPlayerConnect
#1

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).
Reply
#2

Comfirmed!

Anyway here the similar thread & video.
Reply
#3

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.
Reply
#4

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.
Reply
#5

I can confirm this bug. But it's doesn't happened spontaneously. It's randomized.
Reply
#6

Confirmed. Happens randomly but often.
Reply
#7

Happened to me with my ban script, i had to put a timer on to delay the script from checking and kicking.
Reply
#8

I thinked it just happened to me xd, it happens to me always, not randomly, please fix this
Reply
#9

I spent a few hours debuging my shit and turns out this was the problem -_- fix.
Reply
#10

Just use this OnPlayerRequestClass?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)