$~NumpadEnter::
$~Enter::
if (!isInChat() || (isDialogOpen() && (getDialogStyle() == 1 || getDialogStyle() == 3))
Return
Sleep 250
tempText := readString(hGTA, dwSAMP + 0x12D8F8, 256)
if (RegExMatch, (tempText, "/zvan"))
{
ShowDialog( 1, "{3399FF}[FBI]: {FFFFFF}Звание", "{FFFFFF}Введите ваше звание. Пример:`n{3399FF}Агент", "Записать", "Закрыть")
while (!GetKeyState("Enter", "P") && !GetKeyState("Esc", "P"))
continue
if (GetKeyState("Enter", "P"))
{
Sleep, 2000
chatInput := readString(hGTA, dwSAMP + 0x12D8F8, 256)
if (RegExMatch(chatInput, "([А-я]{3,24})", Zvan))
{
addchatmessage(zvan1)
}
}
}
Return