Adoniiz

Bandera de Colombia

Dec 25th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 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:COL0;
  12. new Text:COL1;
  13. new Text:COL2;
  14.  
  15. /////////////////////////////////////////////////////////////////////////////////////
  16.  
  17. public OnFilterScriptInit()
  18. {
  19. // Si quieres esto en tú GameMode, coloca esto en OnGameModeInit preferentemente
  20.  
  21. COL0 = TextDrawCreate(154.000000, 124.000000, "_");
  22. TextDrawBackgroundColor(COL0, -16776961);
  23. TextDrawFont(COL0, 1);
  24. TextDrawLetterSize(COL0, 0.529999, 7.899998);
  25. TextDrawColor(COL0, -16776961);
  26. TextDrawSetOutline(COL0, 0);
  27. TextDrawSetProportional(COL0, 1);
  28. TextDrawSetShadow(COL0, 0);
  29. TextDrawUseBox(COL0, 1);
  30. TextDrawBoxColor(COL0, -53405953);
  31. TextDrawTextSize(COL0, 496.000000, 19.000000);
  32.  
  33. COL1 = TextDrawCreate(154.000000, 199.000000, "_");
  34. TextDrawBackgroundColor(COL1, -16776961);
  35. TextDrawFont(COL1, 1);
  36. TextDrawLetterSize(COL1, 0.519999, 5.300000);
  37. TextDrawColor(COL1, -16776961);
  38. TextDrawSetOutline(COL1, 0);
  39. TextDrawSetProportional(COL1, 1);
  40. TextDrawSetShadow(COL1, 0);
  41. TextDrawUseBox(COL1, 1);
  42. TextDrawBoxColor(COL1, 3713279);
  43. TextDrawTextSize(COL1, 496.000000, 19.000000);
  44.  
  45. COL2 = TextDrawCreate(154.000000, 250.000000, "_");
  46. TextDrawBackgroundColor(COL2, -16776961);
  47. TextDrawFont(COL2, 1);
  48. TextDrawLetterSize(COL2, 0.519999, 5.900000);
  49. TextDrawColor(COL2, -16776961);
  50. TextDrawSetOutline(COL2, 0);
  51. TextDrawSetProportional(COL2, 1);
  52. TextDrawSetShadow(COL2, 0);
  53. TextDrawUseBox(COL2, 1);
  54. TextDrawBoxColor(COL2, -837736705);
  55. TextDrawTextSize(COL2, 496.000000, 43.000000);
  56.  
  57. return 1;
  58. }
  59.  
  60. /////////////////////////////////////////////////////////////////////////////////////
  61.  
  62. public OnPlayerCommandText(playerid, cmdtext[])
  63. {
  64. /*Si quieres un comando para que aparesca la Bandera, usa TextDrawShowForPlayer para mostrar el textdraw, ejemplo:
  65. TextDrawShowForPlayer(playerid,ElTextDraw); o también lo puedes poner para todos: TextDrawShowForAll(ElTextDraw);
  66. para esconder los TextDraw usa TextDrawHideForPlayer y para destruirlo usa TextDrawDestroy.
  67. Para más información: http://wiki.sa-mp.com/ y ve a la zona de TextDraw's
  68.  
  69. Ejemplo de comando:
  70.  
  71.  
  72. - Mostrar la bandera
  73.  
  74. if(!strcmp(cmdtext, "/mostrarbandera", true))
  75. {
  76. TextDrawShowForPlayer(playerid,ElTextDraw);
  77. SendClientMessage(playerid, -1, "Estás mostrando la bandera !");
  78. return 1;
  79. }
  80.  
  81. - y para ocultarla
  82.  
  83. if(!strcmp(cmdtext, "/ocultarbandera", true))
  84. {
  85. TextDrawHideForPlayer(playerid,ElTextDraw);
  86. SendClientMessage(playerid, -1, "Estás ocultando la bandera !");
  87. return 1;
  88. }
  89.  
  90. */
  91. return 0;
  92. }
  93.  
  94. /////////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment