Advertisement
Guest User

Tutorial, Tela de Login em Text Draw

a guest
Jul 17th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.84 KB | None | 0 0
  1. // No topo de sua gamemode ._.
  2.  
  3. new Text:ImagemEntrada;
  4. new Text:TextoEntrada;
  5. new Text:TextoEntrada1;
  6. new Text:TextoEntrada2;
  7. //new Text:BoxEntradaBlue;
  8. new Text:BoxEntrada1;
  9. new Text:BoxEntrada2;
  10. new Text:BoxEntrada3;
  11. new Text:BoxEntrada4;
  12.  
  13. new Text:TextCarregandoL0;
  14. new Text:TextCarregandoL1;
  15. new Text:TextCarregandoL2;
  16. new Text:TextCarregandoL3;
  17. new Text:TextCarregandoL4;
  18.  
  19. // Em OnGameModeInit.
  20. public OnGameModeInit()
  21. {
  22. // Don't use these lines if it's a filterscript
  23. SetGameModeText("[BVF] - RPG");
  24. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  25. SetTimer("SendMSG", 30000, true);
  26. TextCarregandoL0 = TextDrawCreate(2.000000, 2.000000, "_");
  27. TextDrawBackgroundColor(TextCarregandoL0, 255);
  28. TextDrawFont(TextCarregandoL0, 1);
  29. TextDrawLetterSize(TextCarregandoL0, 0.500000, 49.199996);
  30. TextDrawColor(TextCarregandoL0, -1);
  31. TextDrawSetOutline(TextCarregandoL0, 0);
  32. TextDrawSetProportional(TextCarregandoL0, 1);
  33. TextDrawSetShadow(TextCarregandoL0, 1);
  34. TextDrawUseBox(TextCarregandoL0, 1);
  35. TextDrawBoxColor(TextCarregandoL0, 144);
  36. TextDrawTextSize(TextCarregandoL0, 637.000000, 20.000000);
  37. TextDrawSetSelectable(TextCarregandoL0, 0);
  38.  
  39. TextCarregandoL1 = TextDrawCreate(200.000000, 159.000000, "Carregando Gamemode:");
  40. TextDrawBackgroundColor(TextCarregandoL1, 255);
  41. TextDrawFont(TextCarregandoL1, 3);
  42. TextDrawLetterSize(TextCarregandoL1, 1.110000, 5.099998);
  43. TextDrawColor(TextCarregandoL1, 16777215);
  44. TextDrawSetOutline(TextCarregandoL1, 0);
  45. TextDrawSetProportional(TextCarregandoL1, 1);
  46. TextDrawSetShadow(TextCarregandoL1, 1);
  47. TextDrawSetSelectable(TextCarregandoL1, 0);
  48.  
  49. TextCarregandoL2 = TextDrawCreate(200.000000, 204.000000, "Atualização:");
  50. TextDrawBackgroundColor(TextCarregandoL2, 255);
  51. TextDrawFont(TextCarregandoL2, 2);
  52. TextDrawLetterSize(TextCarregandoL2, 0.289999, 1.299998);
  53. TextDrawColor(TextCarregandoL2, -1);
  54. TextDrawSetOutline(TextCarregandoL2, 0);
  55. TextDrawSetProportional(TextCarregandoL2, 1);
  56. TextDrawSetShadow(TextCarregandoL2, 1);
  57. TextDrawSetSelectable(TextCarregandoL2, 0);
  58.  
  59. TextCarregandoL3 = TextDrawCreate(200.000000, 214.000000, "-------------------------------------------------------");
  60. TextDrawBackgroundColor(TextCarregandoL3, 255);
  61. TextDrawFont(TextCarregandoL3, 2);
  62. TextDrawLetterSize(TextCarregandoL3, 0.370000, 1.299998);
  63. TextDrawColor(TextCarregandoL3, -1);
  64. TextDrawSetOutline(TextCarregandoL3, 0);
  65. TextDrawSetProportional(TextCarregandoL3, 1);
  66. TextDrawSetShadow(TextCarregandoL3, 1);
  67. TextDrawSetSelectable(TextCarregandoL3, 0);
  68.  
  69. TextCarregandoL4 = TextDrawCreate(391.000000, 202.000000, "Seu servidor ");
  70. TextDrawBackgroundColor(TextCarregandoL4, 255);
  71. TextDrawFont(TextCarregandoL4, 2);
  72. TextDrawLetterSize(TextCarregandoL4, 0.379999, 1.600000);
  73. TextDrawColor(TextCarregandoL4, -65281);
  74. TextDrawSetOutline(TextCarregandoL4, 0);
  75. TextDrawSetProportional(TextCarregandoL4, 1);
  76. TextDrawSetShadow(TextCarregandoL4, 1);
  77. TextDrawSetSelectable(TextCarregandoL4, 0);
  78.  
  79. ImagemEntrada = TextDrawCreate(1.000000, -1.000000, "loadsc10:loadsc10"); //froten2 Arquivo onde esta o back5 loadsc13:loadsc13
  80. TextDrawBackgroundColor(ImagemEntrada, 255);
  81. TextDrawFont(ImagemEntrada, 4);
  82. TextDrawLetterSize(ImagemEntrada, 0.500000, 1.000000);
  83. TextDrawColor(ImagemEntrada, -1);
  84. TextDrawSetOutline(ImagemEntrada, 0);
  85. TextDrawSetProportional(ImagemEntrada, 1);
  86. TextDrawSetShadow(ImagemEntrada, 1);
  87. TextDrawUseBox(ImagemEntrada, 1);
  88. TextDrawBoxColor(ImagemEntrada, 255);
  89. TextDrawTextSize(ImagemEntrada, 645.000000, 450.000000);
  90.  
  91. BoxEntrada1 = TextDrawCreate(2.000000, 51.000000, "_");
  92. TextDrawBackgroundColor(BoxEntrada1, 255);
  93. TextDrawFont(BoxEntrada1, 1);
  94. TextDrawLetterSize(BoxEntrada1, 0.500000, -0.300000);
  95. TextDrawColor(BoxEntrada1, -1);
  96. TextDrawSetOutline(BoxEntrada1, 0);
  97. TextDrawSetProportional(BoxEntrada1, 1);
  98. TextDrawSetShadow(BoxEntrada1, 1);
  99. TextDrawUseBox(BoxEntrada1, 1);
  100. TextDrawBoxColor(BoxEntrada1, 16777215);
  101. TextDrawTextSize(BoxEntrada1, 637.000000, 0.000000);
  102. TextDrawSetSelectable(BoxEntrada1, 0);
  103.  
  104. BoxEntrada2 = TextDrawCreate(2.000000, 401.000000, "_");
  105. TextDrawBackgroundColor(BoxEntrada2, 255);
  106. TextDrawFont(BoxEntrada2, 1);
  107. TextDrawLetterSize(BoxEntrada2, 0.500000, 5.000000);
  108. TextDrawColor(BoxEntrada2, -1);
  109. TextDrawSetOutline(BoxEntrada2, 0);
  110. TextDrawSetProportional(BoxEntrada2, 1);
  111. TextDrawSetShadow(BoxEntrada2, 1);
  112. TextDrawUseBox(BoxEntrada2, 1);
  113. TextDrawBoxColor(BoxEntrada2, 0x000000AA);
  114. TextDrawTextSize(BoxEntrada2, 637.000000, 0.000000);
  115. TextDrawSetSelectable(BoxEntrada2, 0);
  116.  
  117. BoxEntrada3 = TextDrawCreate(2.000000, 2.000000, "_");
  118. TextDrawBackgroundColor(BoxEntrada3, 255);
  119. TextDrawFont(BoxEntrada3, 1);
  120. TextDrawLetterSize(BoxEntrada3, 0.500000, 5.000000);
  121. TextDrawColor(BoxEntrada3, -1);
  122. TextDrawSetOutline(BoxEntrada3, 0);
  123. TextDrawSetProportional(BoxEntrada3, 1);
  124. TextDrawSetShadow(BoxEntrada3, 1);
  125. TextDrawUseBox(BoxEntrada3, 1);
  126. TextDrawBoxColor(BoxEntrada3, 0x000000AA);
  127. TextDrawTextSize(BoxEntrada3, 637.000000, 0.000000);
  128. TextDrawSetSelectable(BoxEntrada3, 0);
  129.  
  130. BoxEntrada4 = TextDrawCreate(2.000000, 401.000000, "_");
  131. TextDrawBackgroundColor(BoxEntrada4, 255);
  132. TextDrawFont(BoxEntrada4, 1);
  133. TextDrawLetterSize(BoxEntrada4, 0.500000, -0.300000);
  134. TextDrawColor(BoxEntrada4, -1);
  135. TextDrawSetOutline(BoxEntrada4, 0);
  136. TextDrawSetProportional(BoxEntrada4, 1);
  137. TextDrawSetShadow(BoxEntrada4, 1);
  138. TextDrawUseBox(BoxEntrada4, 1);
  139. TextDrawBoxColor(BoxEntrada4, 16777215);
  140. TextDrawTextSize(BoxEntrada4, 637.000000, 0.000000);
  141. TextDrawSetSelectable(BoxEntrada4, 0);
  142.  
  143. TextoEntrada = TextDrawCreate(221.000000, 4.000000, "Seu Servidor");
  144. TextDrawBackgroundColor(TextoEntrada, 255);
  145. TextDrawFont(TextoEntrada, 3);
  146. TextDrawLetterSize(TextoEntrada, 0.600000, 2.800000);
  147. TextDrawColor(TextoEntrada, -1);
  148. TextDrawSetOutline(TextoEntrada, 0);
  149. TextDrawSetProportional(TextoEntrada, 1);
  150. TextDrawSetShadow(TextoEntrada, 1);
  151. TextDrawSetSelectable(TextoEntrada, 0);
  152.  
  153. TextoEntrada1 = TextDrawCreate(334.000000, 27.000000, "versao: ~b~~h~~h~2.0.3");
  154. TextDrawBackgroundColor(TextoEntrada1, 255);
  155. TextDrawFont(TextoEntrada1, 3);
  156. TextDrawLetterSize(TextoEntrada1, 0.400000, 1.300000);
  157. TextDrawColor(TextoEntrada1, -1);
  158. TextDrawSetOutline(TextoEntrada1, 0);
  159. TextDrawSetProportional(TextoEntrada1, 1);
  160. TextDrawSetShadow(TextoEntrada1, 1);
  161. TextDrawSetSelectable(TextoEntrada1, 0);
  162.  
  163. TextoEntrada2 = TextDrawCreate(581.000000, 27.000000, "Servidor");
  164. TextDrawBackgroundColor(TextoEntrada2, 255);
  165. TextDrawFont(TextoEntrada2, 2);
  166. TextDrawLetterSize(TextoEntrada2, 0.370000, 1.700000);
  167. TextDrawColor(TextoEntrada2, 16777215);
  168. TextDrawSetOutline(TextoEntrada2, 0);
  169. TextDrawSetProportional(TextoEntrada2, 1);
  170. TextDrawSetShadow(TextoEntrada2, 1);
  171. TextDrawSetSelectable(TextoEntrada2, 0);
  172. return 1;
  173.  
  174.  
  175. // OnPlayerConnect
  176.  
  177. TextDrawShowForPlayer(playerid, TextLogin0);
  178. TextDrawShowForPlayer(playerid, TextLogin1);
  179. TextDrawShowForPlayer(playerid, TextLogin2);
  180. TextDrawShowForPlayer(playerid, TextLogin3);
  181. TextDrawShowForPlayer(playerid, ImagemEntrada);
  182.  
  183. // OnPlayerRequestClass
  184.  
  185. TextDrawHideForPlayer(playerid, TextLogin1);
  186. TextDrawHideForPlayer(playerid, TextLogin2);
  187. TextDrawHideForPlayer(playerid, TextLogin3);
  188. TextDrawShowForPlayer(playerid, ImagemEntrada);
  189.  
  190. // OnPlayerSpawn
  191.  
  192. TextDrawHideForPlayer(playerid, TextLogin0);
  193. TextDrawHideForPlayer(playerid, ImagemEntrada);
  194.  
  195.  
  196. // fim obrigado, por ver o tutorial =). tutorial postado na rever host ;O
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement