Chaos Posted September 28, 2013 Posted September 28, 2013 I heard there is such a bug in MTA, but it happens very often in my Server. Sometimes player gets timed out, but he is still in the Server. He has 0 ping and only kicking him helps. What is causing this problem and how can i fix it?
Moderators IIYAMA Posted September 28, 2013 Moderators Posted September 28, 2013 https://wiki.multitheftauto.com/wiki/GetNetworkStats Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Chaos Posted September 28, 2013 Author Posted September 28, 2013 function packetLossCheck() local loss = getNetworkStats() ["packetlossLastSecond"] if(loss > 0) then outputChatBox ("Packet loss detected when communicating with server, gameplay may be affected", 255, 0, 0) end end setTimer(packetLossCheck, 1000, 0) is that what i need it?
Moderators IIYAMA Posted September 28, 2013 Moderators Posted September 28, 2013 something like that. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Chaos Posted September 28, 2013 Author Posted September 28, 2013 but i should replace the outputchatbox with kickPlayer function right?
Moderators IIYAMA Posted September 28, 2013 Moderators Posted September 28, 2013 oh you have to do a lot more. - create a playerTable - use a loop - check their getNetworkStats - kick kickPlayer function etc. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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