Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define MESSAGE_COUNT 10 // Adjust when adding messages
  4. #define TIME_BEFORE_FIRST_MESSAGE 40000
  5. #define TIME_BETWEEN_MESSAGES 30000
  6.  
  7. new gMessages[MESSAGE_COUNT][128] = {
  8. "Did you hear about the bird ~r~EVERYBODY ~w~Knows that the bird ~n~is the ~r~WORD! ",
  9. "Races Start Every ~b~10 Minutes~w~. ~n~Type ~y~/Join~w~. ~n~DO ~r~NOT ~y~/Join ~w~If Inside An Interior!",
  10. "~r~Stranded~w~? Too Lazy To Find A Car? ~n~Type ~y~/Back ~w~To Return To LV.",
  11. "Visit ~g~LV Stadium ~w~For A List Of ~y~Stadium Events~w~.",
  12. "Increase Your ~b~Rank ~w~By ~r~Killing ~w~& Gain Access To ~n~The ~g~VIP Lounge ~w~For Better ~r~Weapons!",
  13. "Spot A ~r~Hacker ~w~or Someone Who's Not Following The ~r~Rules? ~n~~w~Use ~y~/report (id) (reason)~w~.",
  14. "Do ~r~NOT ~w~Use ~r~Gunfire ~w~While Racing!",
  15. "~b~Register ~w~At ~y~gamebreakers3.proboards.com ~w~For More Info.",
  16. "Do ~r~NOT ~w~Ask To Become Admin. We Will Ask ~r~You~w~!",
  17. "If You Don't Follow The ~r~/rules, ~n~You Will Be ~r~Punished~w~!"
  18. };
  19.  
  20. /* Old Messages
  21. "Hacking/Cheating Will ~r~NOT ~w~Be Tolerated! ~n~This Will Result In An Instant ~r~BAN! ",
  22. "Races Start Every ~b~10 Minutes~w~. ~n~Type ~y~/Join~w~. ~n~DO ~r~NOT ~y~/Join ~w~If Inside An Interior!",
  23. "~r~Stranded~w~? Too Lazy To Find A Car? ~n~Type ~y~/Back ~w~To Return To LV.",
  24. "Visit ~g~LV Stadium ~w~For A List Of ~y~Stadium Events~w~.",
  25. "Increase Your ~b~Rank ~w~By ~r~Killing ~w~& Gain Access To ~n~The ~g~VIP Lounge ~w~For Better ~r~Weapons!",
  26. "Spot A ~r~Hacker ~w~or Someone Who's Not Following The ~r~Rules? ~n~~w~Use ~y~/report (id) (reason)~w~.",
  27. "Do ~r~NOT ~w~Use ~r~Gunfire ~w~While Racing!",
  28. "~b~Register ~w~At ~y~gamebreakers3.proboards.com ~w~For More Info.",
  29. "Do ~r~NOT ~w~Ask To Become Admin. We Will Ask ~r~You~w~!",
  30. "If You Don't Follow The ~r~/rules, ~n~You Will Be ~r~Punished~w~!"
  31. */
  32.  
  33. new Text:gTextDraws[MESSAGE_COUNT];
  34. new gActiveMessage = 0;
  35.  
  36. public OnFilterScriptInit() {
  37. SetTimer("ShowMessage", TIME_BEFORE_FIRST_MESSAGE, false);
  38. for (new i = 0; i < MESSAGE_COUNT; i++) {
  39. gTextDraws[i] = TextDrawCreate(340.0, 410.0, gMessages[i]);
  40. TextDrawSetOutline(gTextDraws[i], 1);
  41. TextDrawSetShadow(gTextDraws[i], 0);
  42. TextDrawLetterSize(gTextDraws[i], 0.30,0.80);
  43. TextDrawAlignment(gTextDraws[i], 2);
  44. }
  45. return 1;
  46.  
  47. }
  48.  
  49. forward ShowMessage();
  50. public ShowMessage() {
  51. TextDrawHideForAll(gTextDraws[gActiveMessage]);
  52. gActiveMessage++;
  53. if (gActiveMessage == MESSAGE_COUNT) {
  54. gActiveMessage = 0;
  55. }
  56. TextDrawShowForAll(gTextDraws[gActiveMessage]);
  57. SetTimer("ShowMessage", TIME_BETWEEN_MESSAGES, false);
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement