Description
Describe the bug
As the title says, if is player kicked during executing code in OnPlayerConnect it will kick client correctly serverside but not clientside. For a player it appears as lost connection.
To Reproduce
https://www.youtube.com/watch?v=IEVkGPY04HM
forward KickTimer(playerid);
public KickTimer(playerid)
{
Kick(playerid);
}
public OnPlayerConnect(playerid)
{
SetTimerEx("KickTimer",100,false,"i",playerid);
}
It works correctly this way...
public OnPlayerConnect(playerid)
{
Kick(playerid);
}
...but I am using http request to get info from ip-api called in OnPlayerConnect and after http response I can kick a client if it is banned or something. It acts same as fist code show.
30.6. edit
Now I fugured out it aslo may happen any time later but it is not that usuall.
https://www.youtube.com/watch?v=8EIZtxhpSAU
version omp 1.2.0.2717
https://github.com/openmultiplayer/open.mp/actions/runs/9721039075
and aslo tested on omp 1.2.0.2735
https://github.com/openmultiplayer/open.mp/actions/runs/9136915959