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
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.
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.
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