Guest User

Infinite messages.

a guest
Aug 5th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2.  
  3. #define COLOR_ORANGE 0xFFA500AA
  4.  
  5. new messages[][128] = {
  6. "Edit-Me",
  7. "Edit-Me",
  8. "Edit-Me",
  9. "Edit-Me",
  10. "Edit-Me",
  11. "Edit-Me",
  12. "Edit-Me",
  13. "Edit-Me",
  14. "Edit-Me",
  15. "Edit-Me",
  16. "Edit-Me",
  17. "Edit-Me",
  18. "Edit-Me",
  19. "Edit-Me",
  20. "Edit-Me" // The last one Should be without ',' commas.
  21.  
  22.     //You can also change the colors, can use Hex Codes,Example: {FFFFFF}
  23.     //has a site here what i usage http://www.developingwebs.net/tools/color.php
  24. };
  25.  
  26. new colors[] = {
  27. COLOR_ORANGE
  28. };
  29.  
  30. forward RandomMSG();
  31.  
  32. public OnGameModeInit()
  33. {
  34.     SetTimer("RandomMSG",300000,1);
  35.     return 1;
  36. }
  37.  
  38. public RandomMSG()
  39. {
  40.     new string[256];
  41.     new random1 = random(sizeof(messages));
  42.     new random2 = random(sizeof(colors));
  43.     format(string, sizeof(string), "%s", messages[random1]);
  44.     SendClientMessageToAll(colors[random2],string);
  45.     return 1;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment