File: ping_kick.lua - Tab length: 1 2 4 8 - Lines: on off - No wrap: on off

01: PLUGIN_NAME = "Ping kick"
02: PLUGIN_AUTHOR = "Baruch" -- hlepouse@gmail.com
03: PLUGIN_VERSION = "29 dec 2012"
04: 
05: include("ac_server")
06: 
07: LuaLoop()
08:     for cn = 0, maxclient() - 1 do
09:         if isconnected(cn) then
10:             if getping(cn) >= 600 then
11:                 disconnect(cn, DISC_NONE)
12:             end
13:         end
14:     end
15: end