Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~end::
- if !isInChat()
- {
- sendchat("/wanted")
- sleep sdelay.value
- loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
- {
- if RegExMatch(A_LoopReadLine, "^\[(.*)\] \* В РОЗЫСКЕ\: ", s)
- {
- lastwantedtime := s1
- }
- }
- Array := Object()
- loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
- {
- if RegExMatch(A_LoopReadLine, "^\[" lastwantedtime "\] (\w+\[(.*)\]\: \d+(\. )?)+")
- {
- splitwantedline := StrSplit(SubStr(A_LoopReadLine, 11, StrLen(A_LoopReadLine) - 10), " ")
- for i, el in splitwantedline
- {
- if RegExMatch(el, "(.*)\[\d+\]\:", match)
- {
- array.Insert(match1)
- }
- }
- }
- }
- wantedIndex := 0
- SoundBeep
- }
- return
- ~*1::
- if !isInChat()
- {
- if (++wantedIndex > array.MaxIndex())
- {
- wantedIndex := 1
- SoundBeep
- }
- clipboard := array[wantedIndex]
- sendchat("/find " clipboard)
- sleep 1150
- }
- return
- ~*2::
- if !isInChat()
- {
- clipboard := array[wantedIndex]
- sendchat("/find " clipboard)
- sleep 1150
- }
- return
- ~*3::
- if !isInChat()
- {
- if (--wantedIndex < 1)
- {
- wantedIndex := array.MaxIndex()
- SoundBeep
- }
- clipboard := array[wantedIndex]
- sendchat("/find " clipboard)
- sleep 1150
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement