Advertisement
david1337hax

Notify with Timer

Jul 13th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. char* notifyTimerText[500];
  2. bool notifytimerLoop;
  3.  
  4. if(notifytimerLoop) {
  5. Notify(notifyTimerText);
  6. }
  7.  
  8. void NotifyWithTimer(char* msg) {
  9.  
  10. int timeToWait = 5000; // 5000 = 5sec
  11.  
  12. for(int timerWait; timerWait < timeToWait; timerWait++) {
  13.  
  14. notifytimerLoop = 1;
  15. notifyTimerText = msg;
  16.  
  17. }
  18. if(timerWait > timeToWait) {
  19.  
  20. notifytimerLoop = 0;
  21. notifyTimerText = " ";
  22.  
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement