Skip to content

Instantly share code, notes, and snippets.

@CrazyHackGUT
Last active August 7, 2020 12:57
Text window
void CreateTextDialog(int iClient, const char[] szMessage, any ...)
{
char szText[1024];
VFormat(sText, sizeof(sText), szMessage, 3);
KeyValues kvKey = new KeyValues("text");
kvKey.SetNum("time", 200);
kvKey.SetString("title", "ЗАГОЛОВОК ОКНА");
kvKey.SetNum("level", 0);
kvKey.SetString("msg", sText);
CreateDialog(iClient, kvKey, DialogType_Text);
delete kvKey;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment