#SingleInstance, Force
#Persistent
#NoEnv
#Include, %A_ScriptDir%\Cloud\UDF.ahk
#If WinActive("GTA:SA:MP")
global array := []
!1::
{
while !isDialogOpen()
continue
text := getDialogText()
Loop, Parse, text, `n
{
if (RegExMatch(A_LoopField, "iO)\{FFFFFF\}\d{1,3}`t\d{1,3}`t\d{4,6}`t\d{1,2}`t.*`t\d\/\d`t(?P<nick>\w+)[?`t\[VOICE\]]", o)) {
array[] := o["nick"]
}
}
callFuncForAllStreamedInPlayers("player", 200)
}
return
player(o) {
for k, v in array {
if (o["NAME"] == v) {
while isDialogOpen()
continue
SendChat("/r " RegExReplace(v, "^([A-Z])\w+_([A-Za-z]+)$", "$1. $2") " — Вы почему не в строю?!")
Sleep, 1000
}
}
return false
}