Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !5::
- tftime := ""
- tfplayer := ""
- tfitem := ""
- loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
- {
- if RegExMatch(A_LoopReadLine, "^\[(.*?)\] \|__________ Найденные вещи у (.*?) __________\|", s)
- {
- tftime := s1
- tfplayer := s2
- }
- }
- loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
- {
- if RegExMatch(A_LoopReadLine, "^\[" tftime "\] \* Найдены \d+ гр\. .*? порошка\.")
- {
- sendinput {f6}/take drugs %tfplayer%{enter}
- sleep 1150
- continue
- }
- if RegExMatch(A_LoopReadLine, "^\[" tftime "\] \* Обнаружены материалы: \d+\.")
- {
- sendinput {f6}/take materials %tfplayer%{enter}
- sleep 1150
- continue
- }
- if RegExMatch(A_LoopReadLine, "^\[" tftime "\] \* Обнаружен HackRadar\: \d+ глушилок.")
- {
- sendinput {f6}/take hackradar %tfplayer%{enter}
- sleep 1150
- continue
- }
- if RegExMatch(A_LoopReadLine, "^\[" tftime "\] \* Обнаружены бланки\: \d+\.")
- {
- sendinput {f6}/take blanks %tfplayer%{enter}
- sleep 1150
- continue
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement