Chaos Posted September 28, 2013 Share 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? Link to comment
Moderators IIYAMA Posted September 28, 2013 Moderators Share Posted September 28, 2013 https://wiki.multitheftauto.com/wiki/GetNetworkStats Link to comment
Chaos Posted September 28, 2013 Author Share 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? Link to comment
Moderators IIYAMA Posted September 28, 2013 Moderators Share Posted September 28, 2013 something like that. Link to comment
Chaos Posted September 28, 2013 Author Share Posted September 28, 2013 but i should replace the outputchatbox with kickPlayer function right? Link to comment
Moderators IIYAMA Posted September 28, 2013 Moderators Share 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. 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