#MaxThreadsPerHotkey 3
F2::
#MaxThreadsPerHotkey 1
if SmartLoop
{
SmartLoop := false
return
}
SmartLoop := true
Loop
{
Loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
{
IfInString, A_LoopReadLine, [GANG NEWS]
IfInString, A_LoopReadLine, respect
FoundPos := RegExMatch(A_LoopReadLine, "\) \| (.*)", MY_SCORE)
}
If MY_SCORE1 != MY_SCORE2
{
SendInput {f6}/u Счет: %MY_SCORE1%{enter}
MY_SCORE2 := MY_SCORE1
sleep 10000
}
if not SmartLoop
break
}
SmartLoop := false
Return