if (!init)
{
if (GAME == nullptr || GAME->GetSystemState() != eSystemState::GS_PLAYING_GAME || !SF->getSAMP()->IsInitialized()) return;
init = true;
} else {
if (SF->getGame()->isKeyPressed(VK_OEM_PLUS) && !SF->getSAMP()->getDialog()->iIsActive) //Тут проверка на активный диалог сампа, коды кнопок ищи сам, тут -
{
SF->getSAMP()->getChat()->AddChatMessage(0xffffff, "MESSAGE");
}
}