SHARE
TWEET

fast /wanted

a guest May 29th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ~end::
  2. if !isInChat()
  3. {
  4.     sendchat("/wanted")
  5.     sleep sdelay.value
  6.     loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
  7.     {
  8.         if RegExMatch(A_LoopReadLine, "^\[(.*)\] \* В РОЗЫСКЕ\: ", s)
  9.         {
  10.             lastwantedtime := s1
  11.         }
  12.     }
  13.     Array := Object()
  14.     loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
  15.     {
  16.         if RegExMatch(A_LoopReadLine, "^\[" lastwantedtime "\] (\w+\[(.*)\]\: \d+(\. )?)+")
  17.         {
  18.             splitwantedline := StrSplit(SubStr(A_LoopReadLine, 11, StrLen(A_LoopReadLine) - 10), " ")
  19.             for i, el in splitwantedline
  20.             {
  21.                 if RegExMatch(el, "(.*)\[\d+\]\:", match)
  22.                 {
  23.                     array.Insert(match1)
  24.                 }
  25.             }
  26.         }
  27.     }
  28.     wantedIndex := 0
  29.     SoundBeep
  30. }
  31. return
  32.  
  33. ~*1::
  34. if !isInChat()
  35. {
  36.     if (++wantedIndex > array.MaxIndex())
  37.     {
  38.         wantedIndex := 1
  39.         SoundBeep
  40.     }
  41.     clipboard := array[wantedIndex]
  42.     sendchat("/find " clipboard)
  43.     sleep 1150
  44. }
  45. return
  46.  
  47. ~*2::
  48. if !isInChat()
  49. {
  50.     clipboard := array[wantedIndex]
  51.     sendchat("/find " clipboard)
  52.     sleep 1150
  53. }
  54. return
  55.  
  56. ~*3::
  57. if !isInChat()
  58. {
  59.     if (--wantedIndex < 1)
  60.     {
  61.         wantedIndex := array.MaxIndex()
  62.         SoundBeep
  63.     }
  64.     clipboard := array[wantedIndex]
  65.     sendchat("/find " clipboard)
  66.     sleep 1150
  67. }
  68. return
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top