Jump to content

Ping 0


Chaos

Recommended Posts

Posted

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?

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

oh you have to do a lot more.

- create a playerTable

- use a loop

- check their getNetworkStats

- kick kickPlayer function

etc.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...