Помогите с АХК для админов.

andim53

Новичок
Автор темы
2
0
  1. Может кто сделать так, чтобы скрипт сам добавлял в конце "| Ник администратора который просит дать наказание?"

  2. #IfWinActive GTA:SA:MP
  3. #SingleInstance Force
  4. #NoEnv
  5. ListLines Off
  6. SetBatchLines -1

  7. chatlog := A_MyDocuments "\GTA San Andreas User Files\SAMP\chatlog.txt"
  8. FileDelete, %chatlog%

  9. Words = (kick|mute|jail|sethp|unmute|unjail|sban|spcar|ban|sban|warn|skick|setskin|ao|unban|unwarn|setskin|skick|banip|banoff|warnoff|plveh|sban|msg)

  10. F2::
  11. FileRead, Str, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
  12. StringReplace, Str, Str, `r`n, `n, 1
  13. StringReplace, Str, Str, `r, `n, 1

  14. RegExMatch("`n" Str "`n", "i).*\n\[\d+:\d+:\d+]\s*\[A].*?\[.*?]:\s*(/`*" Words "\s.*?)\n", Match)
  15. ToolTip % Clipboard := Match1
  16. FileAppend,%Match1%`n,logachat.ini
  17. SendMessage, 0x50,, 0x4190419,, A
  18. Sleep 150
  19. SendInput,{F6}%match1% {space}
  20. clipboard =
  21. ToolTip
  22. FileDelete,%A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
  23. Return
https://blast.hk/threads/18036/
Скрипт из данной темы