xeon17 Posted January 24, 2017 Share Posted January 24, 2017 (edited) Hello, There are two very similar events OnPlayerNetworkStatus and OnClientPlayerNetworkStatus. My idea was to create a code which freezes the player when he has unstable internet and prevent other players from killing him. Which event is better for this? Using getPlayerPing is not an option. There are players who are teleporting as hell even with a low ping. Edited January 24, 2017 by xeon17 Link to comment
AJXB Posted January 25, 2017 Share Posted January 25, 2017 https://wiki.multitheftauto.com/wiki/OnClientPlayerNetworkStatus Try the example code Link to comment
Mr_Moose Posted January 25, 2017 Share Posted January 25, 2017 You may consider using both, an unstable connection may after all result in data loss so while a freeze called server side may sync across all other players the affected player might not receive the freeze call, client side will freeze the affected player and thus theoretically stop him from moving but due to eventual data loss that signal might not reach the server, that could cause other players to see the affected player continue to move while he should be frozen. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now