Advertisement
Guest User

Untitled

a guest
Nov 6th, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new Text:Textdraw0;
  4. new Text:Textdraw1;
  5. new Text:Textdraw2;
  6. new Text:Textdraw3;
  7. new Text:Textdraw4;
  8. new Text:Textdraw5;
  9. new Text:Textdraw6;
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("Archivo de Textdraws generado utilizando");
  14. print(" Zamaroht's textdraw editor fue exitosamente cargado.");
  15.  
  16. // Crear los textdraws:
  17. Textdraw0 = TextDrawCreate(640.000000, 347.000000, "BOX");
  18. TextDrawBackgroundColor(Textdraw0, 255);
  19. TextDrawFont(Textdraw0, 1);
  20. TextDrawLetterSize(Textdraw0, 0.000000, 5.299999);
  21. TextDrawColor(Textdraw0, 0);
  22. TextDrawSetOutline(Textdraw0, 0);
  23. TextDrawSetProportional(Textdraw0, 1);
  24. TextDrawSetShadow(Textdraw0, 1);
  25. TextDrawUseBox(Textdraw0, 1);
  26. TextDrawBoxColor(Textdraw0, 255);
  27. TextDrawTextSize(Textdraw0, 521.000000, 0.000000);
  28.  
  29. Textdraw1 = TextDrawCreate(553.000000, 345.000000, "STATS");
  30. TextDrawBackgroundColor(Textdraw1, 255);
  31. TextDrawFont(Textdraw1, 1);
  32. TextDrawLetterSize(Textdraw1, 0.559999, 1.400000);
  33. TextDrawColor(Textdraw1, 16711935);
  34. TextDrawSetOutline(Textdraw1, 0);
  35. TextDrawSetProportional(Textdraw1, 1);
  36. TextDrawSetShadow(Textdraw1, 1);
  37.  
  38. Textdraw2 = TextDrawCreate(529.000000, 362.000000, "Lvl:");
  39. TextDrawBackgroundColor(Textdraw2, 255);
  40. TextDrawFont(Textdraw2, 1);
  41. TextDrawLetterSize(Textdraw2, 0.559999, 1.400000);
  42. TextDrawColor(Textdraw2, -1);
  43. TextDrawSetOutline(Textdraw2, 0);
  44. TextDrawSetProportional(Textdraw2, 1);
  45. TextDrawSetShadow(Textdraw2, 1);
  46.  
  47. Textdraw3 = TextDrawCreate(529.000000, 375.000000, "Exp:");
  48. TextDrawBackgroundColor(Textdraw3, 255);
  49. TextDrawFont(Textdraw3, 1);
  50. TextDrawLetterSize(Textdraw3, 0.559999, 1.400000);
  51. TextDrawColor(Textdraw3, -1);
  52. TextDrawSetOutline(Textdraw3, 0);
  53. TextDrawSetProportional(Textdraw3, 1);
  54. TextDrawSetShadow(Textdraw3, 1);
  55.  
  56. Textdraw4 = TextDrawCreate(529.000000, 389.000000, "Muertes:");
  57. TextDrawBackgroundColor(Textdraw4, 255);
  58. TextDrawFont(Textdraw4, 1);
  59. TextDrawLetterSize(Textdraw4, 0.419999, 1.400000);
  60. TextDrawColor(Textdraw4, -1);
  61. TextDrawSetOutline(Textdraw4, 0);
  62. TextDrawSetProportional(Textdraw4, 1);
  63. TextDrawSetShadow(Textdraw4, 1);
  64.  
  65. Textdraw5 = TextDrawCreate(529.000000, 400.000000, "Asesinatos:");
  66. TextDrawBackgroundColor(Textdraw5, 255);
  67. TextDrawFont(Textdraw5, 1);
  68. TextDrawLetterSize(Textdraw5, 0.419999, 1.400000);
  69. TextDrawColor(Textdraw5, -1);
  70. TextDrawSetOutline(Textdraw5, 0);
  71. TextDrawSetProportional(Textdraw5, 1);
  72. TextDrawSetShadow(Textdraw5, 1);
  73.  
  74. Textdraw6 = TextDrawCreate(540.000000, 417.000000, "Barra de proceso");
  75. TextDrawBackgroundColor(Textdraw6, 255);
  76. TextDrawFont(Textdraw6, 1);
  77. TextDrawLetterSize(Textdraw6, 0.300000, 1.400000);
  78. TextDrawColor(Textdraw6, -1);
  79. TextDrawSetOutline(Textdraw6, 0);
  80. TextDrawSetProportional(Textdraw6, 1);
  81. TextDrawSetShadow(Textdraw6, 1);
  82.  
  83. for(new i; i < MAX_PLAYERS; i ++)
  84. {
  85. if(IsPlayerConnected(i))
  86. {
  87. TextDrawShowForPlayer(i, Textdraw0);
  88. TextDrawShowForPlayer(i, Textdraw1);
  89. TextDrawShowForPlayer(i, Textdraw2);
  90. TextDrawShowForPlayer(i, Textdraw3);
  91. TextDrawShowForPlayer(i, Textdraw4);
  92. TextDrawShowForPlayer(i, Textdraw5);
  93. TextDrawShowForPlayer(i, Textdraw6);
  94. }
  95. }
  96. return 1;
  97. }
  98.  
  99. public OnFilterScriptExit()
  100. {
  101. TextDrawHideForAll(Textdraw0);
  102. TextDrawDestroy(Textdraw0);
  103. TextDrawHideForAll(Textdraw1);
  104. TextDrawDestroy(Textdraw1);
  105. TextDrawHideForAll(Textdraw2);
  106. TextDrawDestroy(Textdraw2);
  107. TextDrawHideForAll(Textdraw3);
  108. TextDrawDestroy(Textdraw3);
  109. TextDrawHideForAll(Textdraw4);
  110. TextDrawDestroy(Textdraw4);
  111. TextDrawHideForAll(Textdraw5);
  112. TextDrawDestroy(Textdraw5);
  113. TextDrawHideForAll(Textdraw6);
  114. TextDrawDestroy(Textdraw6);
  115. return 1;
  116. }
  117.  
  118. public OnPlayerConnect(playerid)
  119. {
  120. TextDrawShowForPlayer(playerid, Textdraw0);
  121. TextDrawShowForPlayer(playerid, Textdraw1);
  122. TextDrawShowForPlayer(playerid, Textdraw2);
  123. TextDrawShowForPlayer(playerid, Textdraw3);
  124. TextDrawShowForPlayer(playerid, Textdraw4);
  125. TextDrawShowForPlayer(playerid, Textdraw5);
  126. TextDrawShowForPlayer(playerid, Textdraw6);
  127. return 1;
  128. }
  129.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement