Adoniiz

Bandera de Bolivia

Dec 25th, 2011
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 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:BOL0;
  12. new Text:BOL1;
  13. new Text:BOL2;
  14. new Text:BOL3;
  15. new Text:BOL4;
  16. new Text:BOL5;
  17. new Text:BOL6;
  18.  
  19. /////////////////////////////////////////////////////////////////////////////////////
  20.  
  21. public OnFilterScriptInit()
  22. {
  23. // Si quieres esto en tú GameMode, coloca esto en OnGameModeInit preferentemente
  24.  
  25. BOL0 = TextDrawCreate(493.000000, 248.000000, "_");
  26. TextDrawBackgroundColor(BOL0, 255);
  27. TextDrawFont(BOL0, 3);
  28. TextDrawLetterSize(BOL0, 0.800000, 6.099998);
  29. TextDrawColor(BOL0, 8861439);
  30. TextDrawSetOutline(BOL0, 0);
  31. TextDrawSetProportional(BOL0, 1);
  32. TextDrawSetShadow(BOL0, 1);
  33. TextDrawUseBox(BOL0, 1);
  34. TextDrawBoxColor(BOL0, 8861439);
  35. TextDrawTextSize(BOL0, 142.000000, 5.000000);
  36.  
  37. BOL1 = TextDrawCreate(493.000000, 199.000000, "_");
  38. TextDrawBackgroundColor(BOL1, 255);
  39. TextDrawFont(BOL1, 3);
  40. TextDrawLetterSize(BOL1, 0.800000, 5.199999);
  41. TextDrawColor(BOL1, 16711935);
  42. TextDrawSetOutline(BOL1, 0);
  43. TextDrawSetProportional(BOL1, 1);
  44. TextDrawSetShadow(BOL1, 1);
  45. TextDrawUseBox(BOL1, 1);
  46. TextDrawBoxColor(BOL1, -65281);
  47. TextDrawTextSize(BOL1, 142.000000, 8.000000);
  48.  
  49. BOL2 = TextDrawCreate(493.000000, 145.000000, "_");
  50. TextDrawBackgroundColor(BOL2, 255);
  51. TextDrawFont(BOL2, 3);
  52. TextDrawLetterSize(BOL2, 0.800000, 5.599999);
  53. TextDrawColor(BOL2, 16711935);
  54. TextDrawSetOutline(BOL2, 0);
  55. TextDrawSetProportional(BOL2, 1);
  56. TextDrawSetShadow(BOL2, 1);
  57. TextDrawUseBox(BOL2, 1);
  58. TextDrawBoxColor(BOL2, -16776961);
  59. TextDrawTextSize(BOL2, 142.000000, 5.000000);
  60.  
  61. BOL3 = TextDrawCreate(270.000000, 201.000000, "U");
  62. TextDrawBackgroundColor(BOL3, 255);
  63. TextDrawFont(BOL3, 0);
  64. TextDrawLetterSize(BOL3, 2.599999, 4.199999);
  65. TextDrawColor(BOL3, -16776961);
  66. TextDrawSetOutline(BOL3, 0);
  67. TextDrawSetProportional(BOL3, 1);
  68. TextDrawSetShadow(BOL3, 1);
  69.  
  70. BOL4 = TextDrawCreate(299.000000, 201.000000, "V");
  71. TextDrawBackgroundColor(BOL4, 255);
  72. TextDrawFont(BOL4, 1);
  73. TextDrawLetterSize(BOL4, 1.730000, 1.399999);
  74. TextDrawColor(BOL4, 1679557631);
  75. TextDrawSetOutline(BOL4, 0);
  76. TextDrawSetProportional(BOL4, 1);
  77. TextDrawSetShadow(BOL4, 1);
  78.  
  79. BOL5 = TextDrawCreate(307.000000, 207.000000, "O");
  80. TextDrawBackgroundColor(BOL5, 255);
  81. TextDrawFont(BOL5, 1);
  82. TextDrawLetterSize(BOL5, 0.990000, 3.199999);
  83. TextDrawColor(BOL5, 16711935);
  84. TextDrawSetOutline(BOL5, 0);
  85. TextDrawSetProportional(BOL5, 1);
  86. TextDrawSetShadow(BOL5, 1);
  87.  
  88. BOL6 = TextDrawCreate(312.000000, 211.000000, "O");
  89. TextDrawBackgroundColor(BOL6, 255);
  90. TextDrawFont(BOL6, 1);
  91. TextDrawLetterSize(BOL6, 0.580000, 2.300001);
  92. TextDrawColor(BOL6, 59751679);
  93. TextDrawSetOutline(BOL6, 0);
  94. TextDrawSetProportional(BOL6, 1);
  95. TextDrawSetShadow(BOL6, 1);
  96.  
  97. return 1;
  98. }
  99.  
  100. /////////////////////////////////////////////////////////////////////////////////////
  101.  
  102. public OnPlayerCommandText(playerid, cmdtext[])
  103. {
  104. /*Si quieres un comando para que aparesca la Bandera, usa TextDrawShowForPlayer para mostrar el textdraw, ejemplo:
  105. TextDrawShowForPlayer(playerid,ElTextDraw); o también lo puedes poner para todos: TextDrawShowForAll(ElTextDraw);
  106. para esconder los TextDraw usa TextDrawHideForPlayer y para destruirlo usa TextDrawDestroy.
  107. Para más información: http://wiki.sa-mp.com/ y ve a la zona de TextDraw's
  108.  
  109. Ejemplo de comando:
  110.  
  111.  
  112. - Mostrar la bandera
  113.  
  114. if(!strcmp(cmdtext, "/mostrarbandera", true))
  115. {
  116. TextDrawShowForPlayer(playerid,ElTextDraw);
  117. SendClientMessage(playerid, -1, "Estás mostrando la bandera !");
  118. return 1;
  119. }
  120.  
  121. - y para ocultarla
  122.  
  123. if(!strcmp(cmdtext, "/ocultarbandera", true))
  124. {
  125. TextDrawHideForPlayer(playerid,ElTextDraw);
  126. SendClientMessage(playerid, -1, "Estás ocultando la bandera !");
  127. return 1;
  128. }
  129.  
  130. */
  131. return 0;
  132. }
  133.  
  134. /////////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment