• High Ping Kicker
    2 replies, posted
I need an addon that kick people with a ping that is higher than set.
[lua]hook.Add("Think","CheckPing",function() for _,v in ipairs(player.GetAll()) do local int = v:GetNWInt("HasWarned") if v:Ping() >= 400 and int == 0 then v:ChatPrint("You must lower your ping in 40 seconds or face the consequences.") v:SetNWInt("HasWarned",1) timer.Simple(40,function() v:SetNWInt("HasWarned",2) end) elseif v:Ping() >= 350 and int == 2 then v:ChatPrint("I said fix your ping or else!") v:ConCommand("gmod_cleanup") timer.Simple(10,function() v:SetNWInt("HasWarned",3) end) elseif v:Ping() >= 350 and int == 3 then v:Kick() end end end) [/lua] Put that into lua/autorun/server.
Thanks
Sorry, you need to Log In to post a reply to this thread.