Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kicking player will not always inform a client that it was a kick and appears to be lost connection for a player #931

Open
ddanyk opened this issue Jun 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working nightly

Comments

@ddanyk
Copy link

ddanyk commented Jun 29, 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

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

@ddanyk ddanyk added bug Something isn't working nightly labels Jun 29, 2024
@ddanyk 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
@PazzOnee
Copy link

PazzOnee commented Jul 6, 2024

@AmyrAhmady in latest build its not fixed, and new problem is objects priority, which when you destroy static and create dynamic object, object will be not created, https://github.com/openmultiplayer/open.mp/actions/runs/9776051870

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working nightly
Projects
None yet
Development

No branches or pull requests

3 participants