Adoniiz

Bandera de Ecuador

Dec 25th, 2011
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. /////////////////////////////////////////////////////////////////////////////////////
  2. // Creditos: //
  3. // By Adoniiz. //
  4. /////////////////////////////////////////////////////////////////////////////////////
  5.  
  6. #include <a_samp>
  7. #pragma tabsize 0
  8.  
  9. // Textdraws definidos.
  10.  
  11. new Text:ECU0;
  12. new Text:ECU1;
  13. new Text:ECU2;
  14. new Text:ECU3;
  15. new Text:ECU4;
  16. new Text:ECU5;
  17.  
  18. /////////////////////////////////////////////////////////////////////////////////////
  19.  
  20. public OnFilterScriptInit()
  21. {
  22. // Si quieres esto en tú GameMode, coloca esto en OnGameModeInit preferentemente
  23.  
  24. ECU0 = TextDrawCreate(154.000000, 124.000000, "_");
  25. TextDrawBackgroundColor(ECU0, -16776961);
  26. TextDrawFont(ECU0, 1);
  27. TextDrawLetterSize(ECU0, 0.529999, 7.899998);
  28. TextDrawColor(ECU0, -16776961);
  29. TextDrawSetOutline(ECU0, 0);
  30. TextDrawSetProportional(ECU0, 1);
  31. TextDrawSetShadow(ECU0, 0);
  32. TextDrawUseBox(ECU0, 1);
  33. TextDrawBoxColor(ECU0, -53405953);
  34. TextDrawTextSize(ECU0, 496.000000, 19.000000);
  35.  
  36. ECU1 = TextDrawCreate(154.000000, 199.000000, "_");
  37. TextDrawBackgroundColor(ECU1, -16776961);
  38. TextDrawFont(ECU1, 1);
  39. TextDrawLetterSize(ECU1, 0.519999, 5.300000);
  40. TextDrawColor(ECU1, -16776961);
  41. TextDrawSetOutline(ECU1, 0);
  42. TextDrawSetProportional(ECU1, 1);
  43. TextDrawSetShadow(ECU1, 0);
  44. TextDrawUseBox(ECU1, 1);
  45. TextDrawBoxColor(ECU1, 3713279);
  46. TextDrawTextSize(ECU1, 496.000000, 19.000000);
  47.  
  48. ECU2 = TextDrawCreate(154.000000, 250.000000, "_");
  49. TextDrawBackgroundColor(ECU2, -16776961);
  50. TextDrawFont(ECU2, 1);
  51. TextDrawLetterSize(ECU2, 0.519999, 5.900000);
  52. TextDrawColor(ECU2, -16776961);
  53. TextDrawSetOutline(ECU2, 0);
  54. TextDrawSetProportional(ECU2, 1);
  55. TextDrawSetShadow(ECU2, 0);
  56. TextDrawUseBox(ECU2, 1);
  57. TextDrawBoxColor(ECU2, -837736705);
  58. TextDrawTextSize(ECU2, 496.000000, 43.000000);
  59.  
  60. ECU3 = TextDrawCreate(239.000000, 166.000000, "U");
  61. TextDrawBackgroundColor(ECU3, -16776961);
  62. TextDrawFont(ECU3, 0);
  63. TextDrawLetterSize(ECU3, 4.419998, 10.100000);
  64. TextDrawColor(ECU3, -65281);
  65. TextDrawSetOutline(ECU3, 1);
  66. TextDrawSetProportional(ECU3, 1);
  67.  
  68. ECU4 = TextDrawCreate(303.000000, 161.000000, "--");
  69. TextDrawBackgroundColor(ECU4, 255);
  70. TextDrawFont(ECU4, 1);
  71. TextDrawLetterSize(ECU4, 1.500000, 3.000000);
  72. TextDrawColor(ECU4, -1942421249);
  73. TextDrawSetOutline(ECU4, 0);
  74. TextDrawSetProportional(ECU4, 1);
  75. TextDrawSetShadow(ECU4, 1);
  76.  
  77. ECU5 = TextDrawCreate(309.000000, 199.000000, "M");
  78. TextDrawBackgroundColor(ECU5, 16777215);
  79. TextDrawFont(ECU5, 0);
  80. TextDrawLetterSize(ECU5, 0.949999, 4.400000);
  81. TextDrawColor(ECU5, -1);
  82. TextDrawSetOutline(ECU5, 0);
  83. TextDrawSetProportional(ECU5, 1);
  84. TextDrawSetShadow(ECU5, 1);
  85. TextDrawUseBox(ECU5, 1);
  86. TextDrawBoxColor(ECU5, -1513164801);
  87. TextDrawTextSize(ECU5, 341.000000, 0.000000);
  88.  
  89. return 1;
  90. }
  91.  
  92. /////////////////////////////////////////////////////////////////////////////////////
  93.  
  94. public OnPlayerCommandText(playerid, cmdtext[])
  95. {
  96. /*Si quieres un comando para que aparesca la Bandera, usa TextDrawShowForPlayer para mostrar el textdraw, ejemplo:
  97. TextDrawShowForPlayer(playerid,ElTextDraw); o también lo puedes poner para todos: TextDrawShowForAll(ElTextDraw);
  98. para esconder los TextDraw usa TextDrawHideForPlayer y para destruirlo usa TextDrawDestroy.
  99. Para más información: http://wiki.sa-mp.com/ y ve a la zona de TextDraw's
  100.  
  101. Ejemplo de comando:
  102.  
  103.  
  104. - Mostrar la bandera
  105.  
  106. if(!strcmp(cmdtext, "/mostrarbandera", true))
  107. {
  108. TextDrawShowForPlayer(playerid,ElTextDraw);
  109. SendClientMessage(playerid, -1, "Estás mostrando la bandera !");
  110. return 1;
  111. }
  112.  
  113. - y para ocultarla
  114.  
  115. if(!strcmp(cmdtext, "/ocultarbandera", true))
  116. {
  117. TextDrawHideForPlayer(playerid,ElTextDraw);
  118. SendClientMessage(playerid, -1, "Estás ocultando la bandera !");
  119. return 1;
  120. }
  121.  
  122. */
  123. return 0;
  124. }
  125.  
  126. /////////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment