HotStyle

Untitled

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