~Enter::
if (IsInChat() && !IsDialogOpen()) {
blockChatInput()
Sleep 200
dwAddress := dwSAMP + 0x12D8F8
chatInput := readString(hGTA, dwAddress, 256)
if (RegExMatch(chatInput, "/addnick (.*)", nick)) {
IniWrite, %nick%, myfile.ini, nicknames, name
sleep, 100
addchatmessage("Никнейм " nick " добавлен в ini файл.")
}
else {
if (!isDialogOpen() && chatInput != "") {
unBlockChatInput()
SendChat(chatInput)
writeString(hGTA, dwAddress, "")
}
}
}
return