local hk = require "lib.samp.events"
local act = false
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand("hk", function() act = not act if act then sampAddChatMessage("[Script]: Активирован.", -1) else sampAddChatMessage("[Script]: Деактивирован.", -1) end end)
while true do wait(0) end
end
function hk.onServerMessage(clr, msg)
if act then
local num = msg:match("Организация: (%d+) Должность: (%d+)")
if msg:find('Организация: (%d+) Должность: (%d+)') then
sampSetChatInputText("Вот - " .. num .." ")
end
end
end