Advertisement
Guest User

Untitled

a guest
Jun 20th, 2010
3,314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3.  
  4. #define GREEN 0x21DD00FF
  5. #define RED 0xE60000FF
  6. #define ADMIN_RED 0xFB0000FF
  7. #define YELLOW 0xFFFF00FF
  8. #define ORANGE 0xF97804FF
  9. #define LIGHTRED 0xFF8080FF
  10. #define LIGHTBLUE 0x00C2ECFF
  11. #define PURPLE 0xB360FDFF
  12. #define PLAYER_COLOR 0xFFFFFFFF
  13. #define BLUE 0x1229FAFF
  14. #define LIGHTGREEN 0x38FF06FF
  15. #define DARKPINK 0xE100E1FF
  16. #define DARKGREEN 0x008040FF
  17. #define ANNOUNCEMENT 0x6AF7E1FF
  18. #define COLOR_SYSTEM 0xEFEFF7AA
  19. #define GRAY 0xCECECEFF
  20.  
  21.  
  22. new RandMsg;
  23.  
  24.  
  25.  
  26. new ANNOUNCEMENTS[6][128] ={
  27. "MESSAGE 1", // EDIT THIS
  28. "MESSAGE 2", // EDIT THIS
  29. "MESSAGE 3", // EDIT THIS
  30. "MESSAGE 4", // EDIT THIS
  31. "MESSAGE 5", // EDIT THIS
  32. "MESSAGE 6" // EDIT THIS
  33. };
  34.  
  35.  
  36. public OnFilterScriptInit()
  37. {
  38.  
  39. RandMsg = 0;
  40. SetTimer("GlobalAnnouncement" ,120000,true); // Change the time if you want to. But remember, 1000 = 1 sec
  41. return 1;
  42. }
  43.  
  44. forward GlobalAnnouncement();
  45. public GlobalAnnouncement()
  46. {
  47. switch (RandMsg)
  48. {
  49. case 0: {SendClientMessageToAll(ANNOUNCEMENT,ANNOUNCEMENTS[0]); RandMsg++;} // -- This will be the first message
  50. case 1: {SendClientMessageToAll(ANNOUNCEMENT,ANNOUNCEMENTS[1]); RandMsg++;}
  51. case 2: {SendClientMessageToAll(LIGHTGREEN,ANNOUNCEMENTS[1]); RandMsg++;}
  52. case 3: {SendClientMessageToAll(LIGHTGREEN,ANNOUNCEMENTS[1]); RandMsg++;}
  53. case 4: {SendClientMessageToAll(LIGHTGREEN,ANNOUNCEMENTS[1]); RandMsg++;}
  54. case 5: {SendClientMessageToAll(RED,ANNOUNCEMENTS[2]); RandMsg = 0;} // -- and This will be the last message
  55.  
  56. }
  57. return 1;
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement