Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. void otheresp::watemark() {
  2. const auto charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*abcdefghijklmnopqrstuvwxyz";
  3. static wchar_t buildDate[256];
  4. swprintf(buildDate, L"vsonyp0wer.cf FlowHook Build 1.37", __DATE__);
  5. static int len = std::wstring(buildDate).length();
  6. static bool bSleep = false;
  7. static int delayTime;
  8. static int pos = 0;
  9.  
  10. if (pos > -1) {
  11. for (int i = 0; i < len; ++i) {
  12. if (i >= pos) buildDate[i] = charset[rand() % strlen(charset) - 1];
  13. }
  14. }
  15.  
  16. if (!bSleep) {
  17. pos++;
  18. bSleep = true;
  19. delayTime = GetTickCount() + 50;
  20. if (pos == len) {
  21. pos = -1;
  22. delayTime += 500;
  23. }
  24. }
  25. else if (delayTime < GetTickCount()) {
  26. bSleep = false;
  27. }
  28.  
  29. render::get().textgay(buildDate, 5, 10, g_cfg.menu.menu_theme[0], fonts[INDICATORFONT], HFONT_OFF_SCREEN);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement