function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand("kickall", kicker)
wait(-1)
end
function kicker()
lua_thread.create(function()
for _, val in ipairs(getAllChars()) do
_, id = sampGetPlayerIdByCharHandle(val)
wait(100)
sampProcessChatInput("/kickz "..id)
end
end)
end