Don't know how to do this - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Don't know how to do this (
/showthread.php?tid=613077)
Don't know how to do this -
thegamer355 - 24.07.2016
Hello everyone,
I'm not sure if i'm posting this in the correct section, if not, please move it to the correct section.
I am looking for a way to detect if a player is desynced, and if the player is, kick him.
I have seen this in some servers, but I have no single idea how it's done.
If any of you here knows how to do it, please say so.
Thanks in advance,
-thegamer355
Re: Don't know how to do this -
Freaksken - 24.07.2016
You could kick the player if their ping is too high. I don't know any other way.
Re: Don't know how to do this -
SickAttack - 24.07.2016
Get their packet loss, and at a certain constant value, kick them.
Re: Don't know how to do this -
thegamer355 - 25.07.2016
So i made something which kicks players at an amount of 1%, is 1% an fair amount or is it very low?
Re: Don't know how to do this -
SickAttack - 25.07.2016
Quote:
Originally Posted by thegamer355
So i made something which kicks players at an amount of 1%, is 1% an fair amount or is it very low?
|
The only way to know is by testing it.
Re: Don't know how to do this -
Flake. - 25.07.2016
Quote:
Originally Posted by thegamer355
So i made something which kicks players at an amount of 1%, is 1% an fair amount or is it very low?
|
1% packet loss is nothing, you'll find your packet loss spiking over 1 percent quite regularly. In my opinion you should check how long the players packet loss is risen above normal and kick them at a certain thresh hold, for example. 6%+ for 10 seconds = kick.
Re: Don't know how to do this -
thegamer355 - 25.07.2016
Well i used
this which said that 1% is very bad.
About the tresh hold, any idea how to make it?
I have always been questioning myself about that, but never really needed it.