Skip to content

Instantly share code, notes, and snippets.

@CrazyHackGUT
Last active August 7, 2020 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CrazyHackGUT/282ea5faa318218b0e1a98313c5f3a5f to your computer and use it in GitHub Desktop.
Save CrazyHackGUT/282ea5faa318218b0e1a98313c5f3a5f to your computer and use it in GitHub Desktop.
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