function graphAdminChecker()
lua_thread.create(function()
while true do
wait(0)
if graphicAdmChecker then
local resX, resY = getScreenResolution()
local aList = io.open(getWorkingDirectory()..'\\config\\admins.txt', 'r+')
if aList ~= nil then
local file = aList:read('*a')
achPosition = resY / 2 - 230
renderFontDrawText(font, '{FFFFFF}Админы онлайн:', resX-250, resY / 2 - 250, -1)
for id = 0, sampGetMaxPlayerId() do
if sampIsPlayerConnected(id) then
local name = sampGetPlayerNickname(id)
if string.find(tostring(file), name) and string.find(name, '_') then
renderFontDrawText(font, '• '..name..' ('..id..')', resX-250, achPosition, -1)
achPosition = achPosition + 14
end
end
end
io.close(aList)
end
end
end
end)
end