Advertisement
Guest User

FILTERSCRIPT - Anúncios aleatórios em TextDraw [FAMILIASAMP]

a guest
Feb 23rd, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. forward Anuncios();
  4.  
  5. new RAnunciosS[][] =
  6. {
  7. "Este servidor é patrocinado pelo FAMILIASAMP.COM seja também patrocinado.",
  8. "Encontrou algum hacker em nosso servidor ? Avise aos Admins",
  9. "Este servidor encontra-se na versão atual SA:MP 0.3.7",
  10. "Este servidor possui um sistema de Anuncios por skoolz"
  11. };
  12.  
  13. new Text:TAnuncios[3], TPAnuncios;
  14.  
  15. public OnFilterScriptInit()
  16. {
  17. SetTimer("Anuncios", 60000, true);
  18.  
  19. TPAnuncios = 0;
  20.  
  21. print("---------------------------------------------");
  22. print(" @ Sistema de Anúncios [FAMILIASAMP] - Carregado ! ");
  23. print(" Criado por: skoolz ");
  24. print("---------------------------------------------");
  25.  
  26. TAnuncios[0] = TextDrawCreate(12.400094, 310.213073, "Anuncios aleatorios feito por: skoolz");
  27. TextDrawLetterSize(TAnuncios[0], 0.232000, 1.204266);
  28. TextDrawAlignment(TAnuncios[0], 1);
  29. TextDrawColor(TAnuncios[0], -1);
  30. TextDrawSetShadow(TAnuncios[0], 0);
  31. TextDrawSetOutline(TAnuncios[0], -1);
  32. TextDrawBackgroundColor(TAnuncios[0], 255);
  33. TextDrawFont(TAnuncios[0], 1);
  34. TextDrawSetProportional(TAnuncios[0], 1);
  35. TextDrawSetShadow(TAnuncios[0], 0);
  36.  
  37. TAnuncios[1] = TextDrawCreate(3.599962, 308.720092, "_");
  38. TextDrawLetterSize(TAnuncios[1], 0.488800, 1.600000);
  39. TextDrawTextSize(TAnuncios[1], 246.200012, 0.000000);
  40. TextDrawAlignment(TAnuncios[1], 1);
  41. TextDrawColor(TAnuncios[1], -1);
  42. TextDrawUseBox(TAnuncios[1], 1);
  43. TextDrawBoxColor(TAnuncios[1], 88);
  44. TextDrawSetShadow(TAnuncios[1], 0);
  45. TextDrawSetOutline(TAnuncios[1], 0);
  46. TextDrawBackgroundColor(TAnuncios[1], 255);
  47. TextDrawFont(TAnuncios[1], 1);
  48. TextDrawSetProportional(TAnuncios[1], 1);
  49. TextDrawSetShadow(TAnuncios[1], 0);
  50.  
  51. TAnuncios[2] = TextDrawCreate(5.999997, 307.973449, "!");
  52. TextDrawLetterSize(TAnuncios[2], 0.400000, 1.600000);
  53. TextDrawAlignment(TAnuncios[2], 1);
  54. TextDrawColor(TAnuncios[2], -16776961);
  55. TextDrawSetShadow(TAnuncios[2], 0);
  56. TextDrawSetOutline(TAnuncios[2], 0);
  57. TextDrawBackgroundColor(TAnuncios[2], 255);
  58. TextDrawFont(TAnuncios[2], 1);
  59. TextDrawSetProportional(TAnuncios[2], 1);
  60. TextDrawSetShadow(TAnuncios[2], 0);
  61.  
  62. return 1;
  63. }
  64.  
  65. public OnFilterScriptExit()
  66. {
  67. TextDrawHideForAll(TAnuncios[0]);
  68. TextDrawHideForAll(TAnuncios[1]);
  69. TextDrawHideForAll(TAnuncios[2]);
  70. return 1;
  71. }
  72.  
  73.  
  74. public Anuncios()
  75. {
  76. if(TPAnuncios == 0)
  77. {
  78. new RAnuncios = random(sizeof(RAnunciosS)), string[128];
  79.  
  80. TextDrawShowForAll(TAnuncios[0]);
  81. TextDrawShowForAll(TAnuncios[1]);
  82. TextDrawShowForAll(TAnuncios[2]);
  83.  
  84. format(string, sizeof(string), "%s", RAnunciosS[RAnuncios]);
  85. TextDrawSetString(TAnuncios[0],string);
  86.  
  87. SetTimer("Anuncios", 20000, false);
  88.  
  89. TPAnuncios = 1;
  90. }
  91. else
  92. {
  93. TextDrawHideForAll(TAnuncios[0]);
  94. TextDrawHideForAll(TAnuncios[1]);
  95. TextDrawHideForAll(TAnuncios[2]);
  96.  
  97. TPAnuncios = 0;
  98. }
  99. return 1;
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement