SelectedFile = %A_MyDocuments%\Gta San Andreas User Files\samp\chatlog.txt
Loop
{
log = % A_MyDocuments "\GTA San Andreas User Files\SAMP\chatlog.txt"
id := NearCop()
lastline := GetNewLine(FileCLog)
if lastline contains Подозреваемый, Арестованный
{
FileRead, info, %log%
RegExMatch(info, "\Q] \E(.*)\[FFFFFF\]\E(.*)\Q [269BD8]\E", out)
Sleep, 2200
SendMessage, 0x50,, 0x4190419,, A
SendInput, {F6}/r Дело закрыто. Подозреваемый %out2% пойман. | Напарник(и): {Enter}
Sleep, 2200
SendInput, {F6}/time{Enter}
Sleep, 400
SendInput, {F2}
sleep, 1000
FileDelete %log%
sleep, 1000
FileAppend %log%
}
}