Question: About Ping in sa-mp [by: Tenshi ]
#21

Quote:
Originally Posted by Loppa
View Post
I don't get what you said. If they have high ping they will just perform all the actions that the server requests with a small delay. But they will perform all the actions. So if the server is scripted to slap a player when he tries to enter a locked vehicle the player will always be slapped.
What you are talking about is packet loss. Usually when a player has an high ping he has a bad connection too (Or he is just using all his bandwith to download porn on P2P). And in these cases the player will lost many packets so if the server send to the client the request to perform a "slap action" the client won't receive it.
And going back to the topic. An high ping itself won't affect the server in any way but as an high ping usually means a bad connection it can mess up all the datas the server has about the player. For example: If you have an anticheat that detects when a player spawn nitro on his car it can ban a player wrongly if the server doesn't receive the packet that says to the server that the player has entered a modding shop and bought nitro.
And another thing that increases with the high ping is the packets disorder. When a player has an high ping you usually see him jumping from one position to another one then coming qiuckly back to his previous position. That happens because the server receive client cords in the wrong order. And this can affect the server too. Using the same example i used before. If the server receives that nitro has been added to the car before receiveng packets about him entering the modding shop and buying it the player will be banned.
So even if high ping doesn't crash your server i suggest you to keep a ping kick system on your server to avoid many small issues.
No, they lag so bad the slap misses them. If you don't believe me come on a server with me and I'll show you some people driving admin cars because it never slapped them.
Reply
#22

Create a function that checks players and their vehicles and RemovePlayerFromVehicle if they don't meet conditions, then put the function in a repeating timer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)