Adoniiz

Bandera de Paraguay

Dec 25th, 2011
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 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:PAR0;
  12. new Text:PAR1;
  13. new Text:PAR2;
  14. new Text:PAR3;
  15. new Text:PAR4;
  16. new Text:PAR5;
  17. new Text:PAR6;
  18.  
  19. /////////////////////////////////////////////////////////////////////////////////////
  20.  
  21. public OnFilterScriptInit()
  22. {
  23. // Si quieres esto en tú GameMode, coloca esto en OnGameModeInit preferentemente
  24.  
  25. PAR0 = TextDrawCreate(493.000000, 248.000000, "_");
  26. TextDrawBackgroundColor(PAR0, 255);
  27. TextDrawFont(PAR0, 3);
  28. TextDrawLetterSize(PAR0, 0.800000, 6.099998);
  29. TextDrawColor(PAR0, 16711935);
  30. TextDrawSetOutline(PAR0, 0);
  31. TextDrawSetProportional(PAR0, 1);
  32. TextDrawSetShadow(PAR0, 1);
  33. TextDrawUseBox(PAR0, 1);
  34. TextDrawBoxColor(PAR0, 995795967);
  35. TextDrawTextSize(PAR0, 142.000000, 5.000000);
  36.  
  37. PAR1 = TextDrawCreate(493.000000, 199.000000, "_");
  38. TextDrawBackgroundColor(PAR1, 255);
  39. TextDrawFont(PAR1, 3);
  40. TextDrawLetterSize(PAR1, 0.800000, 5.199999);
  41. TextDrawColor(PAR1, 16711935);
  42. TextDrawSetOutline(PAR1, 0);
  43. TextDrawSetProportional(PAR1, 1);
  44. TextDrawSetShadow(PAR1, 1);
  45. TextDrawUseBox(PAR1, 1);
  46. TextDrawBoxColor(PAR1, -1);
  47. TextDrawTextSize(PAR1, 142.000000, 8.000000);
  48.  
  49. PAR2 = TextDrawCreate(493.000000, 145.000000, "_");
  50. TextDrawBackgroundColor(PAR2, 255);
  51. TextDrawFont(PAR2, 3);
  52. TextDrawLetterSize(PAR2, 0.800000, 5.599999);
  53. TextDrawColor(PAR2, 16711935);
  54. TextDrawSetOutline(PAR2, 0);
  55. TextDrawSetProportional(PAR2, 1);
  56. TextDrawSetShadow(PAR2, 1);
  57. TextDrawUseBox(PAR2, 1);
  58. TextDrawBoxColor(PAR2, -1107286017);
  59. TextDrawTextSize(PAR2, 142.000000, 5.000000);
  60.  
  61. PAR3 = TextDrawCreate(301.000000, 203.000000, "O");
  62. TextDrawBackgroundColor(PAR3, 255);
  63. TextDrawFont(PAR3, 1);
  64. TextDrawLetterSize(PAR3, 1.230000, 4.099999);
  65. TextDrawColor(PAR3, -1107286017);
  66. TextDrawSetOutline(PAR3, 0);
  67. TextDrawSetProportional(PAR3, 1);
  68. TextDrawSetShadow(PAR3, 1);
  69.  
  70. PAR4 = TextDrawCreate(310.000000, 214.000000, "O");
  71. TextDrawBackgroundColor(PAR4, 255);
  72. TextDrawFont(PAR4, 1);
  73. TextDrawLetterSize(PAR4, 0.559999, 1.900000);
  74. TextDrawColor(PAR4, 65535);
  75. TextDrawSetOutline(PAR4, 0);
  76. TextDrawSetProportional(PAR4, 1);
  77. TextDrawSetShadow(PAR4, 1);
  78.  
  79. PAR5 = TextDrawCreate(311.000000, 219.000000, "]");
  80. TextDrawBackgroundColor(PAR5, 255);
  81. TextDrawFont(PAR5, 2);
  82. TextDrawLetterSize(PAR5, 0.380000, 0.900000);
  83. TextDrawColor(PAR5, -65281);
  84. TextDrawSetOutline(PAR5, 0);
  85. TextDrawSetProportional(PAR5, 1);
  86. TextDrawSetShadow(PAR5, 1);
  87.  
  88. PAR6 = TextDrawCreate(304.000000, 207.000000, "O");
  89. TextDrawBackgroundColor(PAR6, 255);
  90. TextDrawFont(PAR6, 1);
  91. TextDrawLetterSize(PAR6, 1.009999, 3.300000);
  92. TextDrawColor(PAR6, 16711935);
  93. TextDrawSetOutline(PAR6, 0);
  94. TextDrawSetProportional(PAR6, 1);
  95. TextDrawSetShadow(PAR6, 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