local hook = require 'lib.samp.events'
local textpod = 'MQ я павлов слив от павлова. админы пидарасы. серверр хуйня. ебал ваших мамочеек' -- можешь сюда свой текст подставить
function main()
while not isSampAvailable() do wait(0) end
while true do wait(0)
if sampIsLocalPlayerSpawned() then
sampSendChat('/report')
return false
end
end
end
function hook.OnShowDialog(dialogId, dialogStyle, dialogTitle, okButtonText, cancelButtonText, dialogText)
if dialogId == (32) and sampIsLocalPlayerSpawned() then
sampSendDialogResponse(dialogId, 1, sampGetCurrentDialogListItem(), textpod)
return false
end
end
function hook.onServerMessage(color, text)
if string.find(text, 'Вы отправили жалобу:') then return false end
if string.find(text, 'Писать в репорт можно раз в 3 минуты') then return false end
if string.find(text, 'На ваш вопрос обязательно ответит администрация! Вы') then return false end
if string.find(text, 'Если за вами необходимо срочно проследить, администрация сделает это вне очереди!') then return false end
if string.find(text, 'принялся за ваш репорт') then return false end
end
function hook.onDisplayGameText(style, time, text)
if text:find('Successful') then
return false
end
end