local sampev = require("samp.events")
require("addon")
function sampev.onServerMessage(color, text)
if text:find('%/code .+') then
codearena = text:match('%/code (.+)')
print('Найден код: ' .. codearena)
sendInput('/code ' .. codearena)
end
if text:find('%/cchas') then
newTask(function()
wait(2500)
sendInput('/cchas')
end)
end
end