local ffi = require('ffi')
local sampev = require('lib.samp.events')
ffi.cdef([[
typedef int BOOL;
typedef unsigned long HANDLE;
typedef HANDLE HWND;
BOOL FlashWindow(HWND hWnd, BOOL bInvert);
]])
function main()
while not isSampAvailable() do wait(0) end
while true do
wait(0)
end
end
function sampev.onServerMessage(color, text)
if text:find('я луашер') then
local hwnd = ffi.cast('HWND**', 0xC17054)[0][0]
ffi.C.FlashWindow(hwnd, true);
end
end