Guest User

Simple Automessage System by falco3205

a guest
Feb 14th, 2013
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.79 KB | None | 0 0
  1. /*
  2.              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  3.                     &                                                                &
  4.                     &                      FALCO3205 SCRIPTER                        &
  5.                     &                                                                &
  6.              %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
  7.              
  8.              
  9.  
  10. #include <a_samp>
  11. ////color define
  12. #define COLOR_NORMAL_PLAYER 0xFFBB7777
  13. ////finish color define
  14. #if defined FILTERSCRIPT
  15.  
  16. public OnFilterScriptInit()
  17. {
  18.     print("\n--------------------------------------");
  19.     print(" AutoMessage By FalCo3205 Scripter");
  20.     print("--------------------------------------\n");
  21.     return 1;
  22. }
  23.  
  24. public OnFilterScriptExit()
  25. {
  26.     return 1;
  27. }
  28.  
  29. #else
  30.  
  31. main()
  32. {
  33.     print("\n----------------------------------");
  34.     print(" AutoMessage By FalCo3205 Scripter");
  35.     print("----------------------------------\n");
  36. }
  37.  
  38. #endif
  39.  
  40. public OnGameModeInit()
  41. {
  42. SetTimer("RandomMessage", 250 * 200, 1);
  43. return 1;
  44. }
  45.  
  46. public OnGameModeExit()
  47. {
  48.     return 1;
  49. }
  50.  
  51. forward RandomMessage();
  52. public RandomMessage()
  53. {
  54. switch(random(8))
  55. {
  56. case 0: SendClientMessageToAll(COLOR_NORMAL_PLAYER, "insert text1");
  57.  
  58. case 1: SendClientMessageToAll(COLOR_NORMAL_PLAYER, "insert text2");
  59.  
  60. case 2: SendClientMessageToAll(COLOR_NORMAL_PLAYER, "insert text3");
  61.  
  62. case 3: SendClientMessageToAll(COLOR_NORMAL_PLAYER, "insert text4");
  63.  
  64. case 4: SendClientMessageToAll(COLOR_NORMAL_PLAYER, "insert text5");
  65.  
  66. case 5: SendClientMessageToAll(COLOR_NORMAL_PLAYER, "insert text6");
  67.  
  68. case 6: SendClientMessageToAll(COLOR_NORMAL_PLAYER, "insert text7");
  69.  
  70. case 7: SendClientMessageToAll(COLOR_NORMAL_PLAYER, "insert text8");
  71. }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment