Advertisement
Guest User

Random Messages by @geerdinho8

a guest
Aug 3rd, 2011
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.44 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COLOR_ORANGE 0xFF9900AA
  4.  
  5. #define COLOR_GREEN 0x33AA33AA
  6. #define COLOR_RED 0xFF0000FF
  7. #define COLOR_LIGHTBLUE 0x33CCFFAA
  8. #define COLOR_GREY 0xAFAFAFAA
  9. #define COLOR_YELLOW 0xFFFF00AA
  10. #define COLOR_PINK 0xFF66FFAA
  11. #define COLOR_BLUE 0x0000BBAA
  12. #define COLOR_WHITE 0xFFFFFFAA
  13. #define COLOR_DARKRED 0x660000AA
  14. #define COLOR_ORANGE 0xFF9900AA
  15. #define COLOR_BRIGHTRED 0xFF0000AA
  16. #define COLOR_INDIGO 0x4B00B0AA
  17. #define COLOR_VIOLET 0x9955DEEE
  18. #define COLOR_LIGHTRED 0xFF99AADD
  19. #define COLOR_SEAGREEN 0x00EEADDF
  20. #define COLOR_GRAYWHITE 0xEEEEFFC4
  21. #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
  22. #define COLOR_GREENISHGOLD 0xCCFFDD56
  23. #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
  24. #define COLOR_NEUTRALBLUE 0xABCDEF01
  25. #define COLOR_LIGHTCYAN 0xAAFFCC33
  26. #define COLOR_LEMON 0xDDDD2357
  27. #define COLOR_MEDIUMBLUE 0x63AFF00A
  28. #define COLOR_NEUTRAL 0xABCDEF97
  29. #define COLOR_BLACK 0x00000000
  30. #define COLOR_NEUTRALGREEN 0x81CFAB00
  31. #define COLOR_DARKGREEN 0x12900BBF
  32. #define COLOR_LIGHTGREEN 0x24FF0AB9
  33. #define COLOR_DARKBLUE 0x300FFAAB
  34. #define COLOR_BLUEGREEN 0x46BBAA00
  35. #define COLOR_PINK 0xFF66FFAA
  36. #define COLOR_LIGHTBLUE 0x33CCFFAA
  37. #define COLOR_DARKRED 0x660000AA
  38. #define COLOR_ORANGE 0xFF9900AA
  39. #define COLOR_PURPLE 0x800080AA
  40. #define COLOR_GRAD1 0xB4B5B7FF
  41. #define COLOR_GRAD2 0xBFC0C2FF
  42. #define COLOR_RED1 0xFF0000AA
  43. #define COLOR_GREY 0xAFAFAFAA
  44. #define COLOR_YELLOW 0xFFFF00AA
  45. #define COLOR_WHITE 0xFFFFFFAA
  46. #define COLOR_BROWN 0x993300AA
  47. #define COLOR_CYAN 0x99FFFFAA
  48. #define COLOR_TAN 0xFFFFCCAA
  49. #define COLOR_PINK 0xFF66FFAA
  50. #define COLOR_KHAKI 0x999900AA
  51. #define COLOR_LIME 0x99FF00AA
  52. #define COLOR_SYSTEM 0xEFEFF7AA
  53. #define COLOR_GRAD2 0xBFC0C2FF
  54. #define COLOR_GRAD4 0xD8D8D8FF
  55. #define COLOR_GRAD6 0xF0F0F0FF
  56. #define COLOR_GRAD2 0xBFC0C2FF
  57. #define COLOR_GRAD3 0xCBCCCEFF
  58. #define COLOR_GRAD5 0xE3E3E3FF
  59. #define COLOR_GRAD1 0xB4B5B7FF
  60.  
  61.  
  62. public OnFilterScriptInit()
  63. {
  64.     SetTimer("RandomMsg", 60000, 1);//loads the messages
  65.     return 1;
  66. }
  67.  
  68. forward RandomMsg();
  69. public RandomMsg()
  70. {
  71.         new message = random(3);//random(3); is the ammount of messages, you can change it to everything you want, but dont forget to change the cases too!
  72.         switch(message) {
  73.         case 0:SendClientMessageToAll(COLOR_PURPLE, "Random Messages created by Second");
  74.         case 1:SendClientMessageToAll(COLOR_PURPLE, "Take a look at our website");
  75.         case 2:SendClientMessageToAll(COLOR_PURPLE, "Thanks for choosing my server");
  76.     }
  77.     return 1;
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement