You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
ddanyk
changed the title
Kicking player soon after OnPlayerConnect is called will not inform a client that it was a kick and appears to be lost connection for a player
Kicking player will not always inform a client that it was a kick and appears to be lost connection for a player
Jun 30, 2024
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
It works correctly this way...
...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
The text was updated successfully, but these errors were encountered: