Advertisement
Guest User

AutoMessager By BlueQuiq

a guest
Jul 6th, 2013
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.24 KB | None | 0 0
  1. /*
  2.     Created by BlueQuiq | Moshe ohana - for Beginners
  3. */
  4. #include <a_samp>
  5. #include <DOF2>
  6. #include <BqColors>
  7.  
  8. #define DashBoardTime 5 // How often DashBoard appears [Minute]
  9. #define AutoMessageTime 2 // How often AutoMessage appears [Minute]
  10. forward TimerDashBoard();
  11. forward TimerAutoMessage();
  12.  
  13. public OnGameModeInit()
  14. {
  15.     SetTimer("TimerBashBoard",1000*DashBoardTime,1);
  16.     SetTimer("TimerAutoMessage",1000*AutoMessageTime,1);
  17.     return 1;
  18. }
  19. public TimerAutoMessage()
  20. {
  21.     SendClientMessageToAll(COLOR_YELLOW,"[DashBoard]");
  22.     SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
  23.     SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
  24.     SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
  25.     SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
  26.     SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
  27.     SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
  28.     SendClientMessageToAll(COLOR_LIGHTBLUE,">> Set this line to you message");
  29.     SendClientMessageToAll(COLOR_YELLOW,"[DashBoard]");
  30.     return 1;
  31. }
  32.  
  33. public TimerDashBoard()
  34. {
  35.     switch(RandomNum(1,10))
  36.     {
  37.         case 1:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  38.         case 2:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  39.         case 3:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  40.         case 4:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  41.         case 5:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  42.         case 6:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  43.         case 7:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  44.         case 8:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  45.         case 9:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  46.         case 10:SendClientMessageToAll(COLOR_YELLOW,"White here what you want display on screen");
  47.     }
  48.     return 1;
  49. }
  50. stock RandomNum(minnum,maxnum) return random(maxnum - minnum) + minnum;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement