SHARE
TWEET

Untitled

a guest May 29th, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :B0?:/dice::
  2. Input, dicename, T V, {space}
  3. sendchat("/id " dicename)
  4. sleep 300
  5. Loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
  6. {
  7.     if RegExMatch(A_LoopReadLine, "^\[\d{2}\:\d{2}\:\d{2}\] ID\: \(\d+\) (.*)", diceid)
  8.     {
  9.         name := diceid1
  10.     }
  11.     if RegExMatch(A_LoopReadLine, "^\[\d{2}\:\d{2}\:\d{2}\] ID\: \(\d+\) (.*) \{\w{6}\}<PAUSE\: \d+ sec>", diceid)
  12.     {
  13.         name := diceid1
  14.     }
  15. }
  16. s := strlen(dicename) + 1
  17. send, {backspace %s%}
  18. sendinput, %name%{space}
  19. myname := GetUsername()
  20. targetpool := Object()
  21. mypool := Object()
  22. tstring :=
  23. ystring :=
  24. if (name)
  25. {
  26.     loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
  27.     {
  28.         if RegExMatch(A_LoopReadLine, "^\[\d{2}:\d{2}:\d{2}\] \[DICE\] Кинули кости (.*) \[(.*)\]:\[(.*)\] (.*). Ставка: \$(.*)", dice)
  29.         {
  30.             if (dice1 = name)
  31.             targetpool.Insert(dice2)
  32.             if (dice4 = name)
  33.             targetpool.Insert(dice3)
  34.             if (dice1 = myname)
  35.             mypool.Insert(dice2)
  36.             if (dice4 = myname)
  37.             mypool.Insert(dice3)
  38.         }
  39.         if RegExMatch(A_LoopReadLine, "^\[\d{2}:\d{2}:\d{2}\] \[DICE\] (.*) кинул кости, выпало (.*)", dice)
  40.         {
  41.             if (dice1 = name)
  42.             targetpool.Insert(dice2)
  43.             if (dice1 = myname)
  44.             mypool.Insert(dice2)
  45.         }
  46.     }
  47.     for i, el in targetpool
  48.     {
  49.         if (A_Index > targetpool.MaxIndex()-dicecount.value)
  50.         tstring := tstring " " el
  51.     }
  52.     for i, el in mypool
  53.     {
  54.         if (A_Index > mypool.MaxIndex()-dicecount.value)
  55.         ystring := ystring " " el
  56.     }
  57.     addBindMessage(COLOR_WHITE, "Последние числа игрока " name ":" COLOR_ORANGE tstring)
  58.     addBindMessage(COLOR_WHITE, "Ваши последние числа:" COLOR_ORANGE ystring)
  59. }
  60. 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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top