Jump to content

Help


Recommended Posts

Hello all i have a dayz szerver and i want to block the dumpin at the server its can be do it some way like if the player was remove the internet cable then the server was automatically kick ? and not just give a network trouble

What's that? explain more better

Link to comment

I use this to notify me of potential lag switchers...

function packetLossCheck() 
    for i,plr in pairs(getElementsByType'player')do 
        local loss = getNetworkStats(plr)["packetlossLastSecond"] 
        if (loss > 40) then 
            outputDebugString("Packet loss detected from player: "..getPlayerName(plr)..".",3,0,0,255) 
        end 
    end 
end 
setTimer(packetLossCheck, 1000, 0) 
  

in combination with the example for onClientPlayerNetworkStatus

Link to comment

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