Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.24 KB | None | 0 0
  1.  
  2.  
  3.  
  4. new PlayerText:TextLogin[16][MAX_PLAYERS];
  5.  
  6.  
  7. CriarTextsLogin (playerid) {
  8.  
  9. TextLogin[0][playerid] = CreatePlayerTextDraw(playerid, 644.352905, 1.499998, "1");
  10. PlayerTextDrawLetterSize(playerid, TextLogin[0][playerid], 0.000000, 11.933333);
  11. PlayerTextDrawTextSize(playerid, TextLogin[0][playerid], -2.470588, 0.000000);
  12. PlayerTextDrawAlignment(playerid, TextLogin[0][playerid], 1);
  13. PlayerTextDrawColor(playerid, TextLogin[0][playerid], 0);
  14. PlayerTextDrawUseBox(playerid, TextLogin[0][playerid], true);
  15. PlayerTextDrawBoxColor(playerid, TextLogin[0][playerid], 102);
  16. PlayerTextDrawSetShadow(playerid, TextLogin[0][playerid], 0);
  17. PlayerTextDrawSetOutline(playerid, TextLogin[0][playerid], 0);
  18. PlayerTextDrawFont(playerid, TextLogin[0][playerid], 0);
  19.  
  20. TextLogin[1][playerid] = CreatePlayerTextDraw(playerid, 642.058715, 404.416931, "2");
  21. PlayerTextDrawLetterSize(playerid, TextLogin[1][playerid], 0.000000, 11.933333);
  22. PlayerTextDrawTextSize(playerid, TextLogin[1][playerid], -2.470588, 0.000000);
  23. PlayerTextDrawAlignment(playerid, TextLogin[1][playerid], 1);
  24. PlayerTextDrawColor(playerid, TextLogin[1][playerid], 0);
  25. PlayerTextDrawUseBox(playerid, TextLogin[1][playerid], true);
  26. PlayerTextDrawBoxColor(playerid, TextLogin[1][playerid], 102);
  27. PlayerTextDrawSetShadow(playerid, TextLogin[1][playerid], 0);
  28. PlayerTextDrawSetOutline(playerid, TextLogin[1][playerid], 0);
  29. PlayerTextDrawFont(playerid, TextLogin[1][playerid], 0);
  30.  
  31. TextLogin[2][playerid] = CreatePlayerTextDraw(playerid, 641.529418, 406.916839, "BARRA1");
  32. PlayerTextDrawLetterSize(playerid, TextLogin[2][playerid], 0.000000, -0.187034);
  33. PlayerTextDrawTextSize(playerid, TextLogin[2][playerid], -4.823530, 0.000000);
  34. PlayerTextDrawAlignment(playerid, TextLogin[2][playerid], 1);
  35. PlayerTextDrawColor(playerid, TextLogin[2][playerid], 65535);
  36. PlayerTextDrawUseBox(playerid, TextLogin[2][playerid], true);
  37. PlayerTextDrawBoxColor(playerid, TextLogin[2][playerid], 65535);
  38. PlayerTextDrawSetShadow(playerid, TextLogin[2][playerid], 0);
  39. PlayerTextDrawSetOutline(playerid, TextLogin[2][playerid], 0);
  40. PlayerTextDrawBackgroundColor(playerid, TextLogin[2][playerid], 65535);
  41. PlayerTextDrawFont(playerid, TextLogin[2][playerid], 0);
  42.  
  43. TextLogin[3][playerid] = CreatePlayerTextDraw(playerid, 645.352844, 108.083442, "BARRA2");
  44. PlayerTextDrawLetterSize(playerid, TextLogin[3][playerid], 0.000000, -0.187034);
  45. PlayerTextDrawTextSize(playerid, TextLogin[3][playerid], -2.000000, 0.000000);
  46. PlayerTextDrawAlignment(playerid, TextLogin[3][playerid], 1);
  47. PlayerTextDrawColor(playerid, TextLogin[3][playerid], 65535);
  48. PlayerTextDrawUseBox(playerid, TextLogin[3][playerid], true);
  49. PlayerTextDrawBoxColor(playerid, TextLogin[3][playerid], 65535);
  50. PlayerTextDrawSetShadow(playerid, TextLogin[3][playerid], 0);
  51. PlayerTextDrawSetOutline(playerid, TextLogin[3][playerid], 0);
  52. PlayerTextDrawBackgroundColor(playerid, TextLogin[3][playerid], 65535);
  53. PlayerTextDrawFont(playerid, TextLogin[3][playerid], 0);
  54.  
  55. TextLogin[4][playerid] = CreatePlayerTextDraw(playerid, 407.176513, 113.499992, "CENTRO");
  56. PlayerTextDrawLetterSize(playerid, TextLogin[4][playerid], 0.000000, 31.789846);
  57. PlayerTextDrawTextSize(playerid, TextLogin[4][playerid], 227.176544, 0.000000);
  58. PlayerTextDrawAlignment(playerid, TextLogin[4][playerid], 1);
  59. PlayerTextDrawColor(playerid, TextLogin[4][playerid], 0);
  60. PlayerTextDrawUseBox(playerid, TextLogin[4][playerid], true);
  61. PlayerTextDrawBoxColor(playerid, TextLogin[4][playerid], 102);
  62. PlayerTextDrawSetShadow(playerid, TextLogin[4][playerid], 0);
  63. PlayerTextDrawSetOutline(playerid, TextLogin[4][playerid], 0);
  64. PlayerTextDrawFont(playerid, TextLogin[4][playerid], 2);
  65.  
  66. TextLogin[5][playerid] = CreatePlayerTextDraw(playerid, 258.353057, 104.416633, "LYW");
  67. PlayerTextDrawLetterSize(playerid, TextLogin[5][playerid], 0.967647, 4.930831);
  68. PlayerTextDrawTextSize(playerid, TextLogin[5][playerid], 420.235198, 467.833465);
  69. PlayerTextDrawAlignment(playerid, TextLogin[5][playerid], 1);
  70. PlayerTextDrawColor(playerid, TextLogin[5][playerid], 41215);
  71. PlayerTextDrawSetShadow(playerid, TextLogin[5][playerid], 0);
  72. PlayerTextDrawSetOutline(playerid, TextLogin[5][playerid], 1);
  73. PlayerTextDrawBackgroundColor(playerid, TextLogin[5][playerid], -1);
  74. PlayerTextDrawFont(playerid, TextLogin[5][playerid], 1);
  75. PlayerTextDrawSetProportional(playerid, TextLogin[5][playerid], 1);
  76.  
  77. TextLogin[6][playerid] = CreatePlayerTextDraw(playerid, 331.764617, 112.000000, "RPG 1.0");
  78. PlayerTextDrawLetterSize(playerid, TextLogin[6][playerid], 0.383176, 1.775000);
  79. PlayerTextDrawAlignment(playerid, TextLogin[6][playerid], 1);
  80. PlayerTextDrawColor(playerid, TextLogin[6][playerid], -1);
  81. PlayerTextDrawSetShadow(playerid, TextLogin[6][playerid], 0);
  82. PlayerTextDrawSetOutline(playerid, TextLogin[6][playerid], 1);
  83. PlayerTextDrawBackgroundColor(playerid, TextLogin[6][playerid], 51);
  84. PlayerTextDrawFont(playerid, TextLogin[6][playerid], 1);
  85. PlayerTextDrawSetProportional(playerid, TextLogin[6][playerid], 1);
  86.  
  87. TextLogin[7][playerid] = CreatePlayerTextDraw(playerid, 233.176147, 162.166854, "BARRA L1");
  88. PlayerTextDrawLetterSize(playerid, TextLogin[7][playerid], 0.000000, 13.507081);
  89. PlayerTextDrawTextSize(playerid, TextLogin[7][playerid], 228.588241, 0.000000);
  90. PlayerTextDrawAlignment(playerid, TextLogin[7][playerid], 1);
  91. PlayerTextDrawColor(playerid, TextLogin[7][playerid], 65535);
  92. PlayerTextDrawUseBox(playerid, TextLogin[7][playerid], true);
  93. PlayerTextDrawBoxColor(playerid, TextLogin[7][playerid], 65535);
  94. PlayerTextDrawSetShadow(playerid, TextLogin[7][playerid], 0);
  95. PlayerTextDrawSetOutline(playerid, TextLogin[7][playerid], 0);
  96. PlayerTextDrawBackgroundColor(playerid, TextLogin[7][playerid], 65535);
  97. PlayerTextDrawFont(playerid, TextLogin[7][playerid], 0);
  98.  
  99. TextLogin[8][playerid] = CreatePlayerTextDraw(playerid, 405.470001, 162.000213, "BARRA L2");
  100. PlayerTextDrawLetterSize(playerid, TextLogin[8][playerid], 0.000000, 13.365905);
  101. PlayerTextDrawTextSize(playerid, TextLogin[8][playerid], 400.823272, 0.000000);
  102. PlayerTextDrawAlignment(playerid, TextLogin[8][playerid], 1);
  103. PlayerTextDrawColor(playerid, TextLogin[8][playerid], 65535);
  104. PlayerTextDrawUseBox(playerid, TextLogin[8][playerid], true);
  105. PlayerTextDrawBoxColor(playerid, TextLogin[8][playerid], 65535);
  106. PlayerTextDrawSetShadow(playerid, TextLogin[8][playerid], 0);
  107. PlayerTextDrawSetOutline(playerid, TextLogin[8][playerid], 0);
  108. PlayerTextDrawBackgroundColor(playerid, TextLogin[8][playerid], 65535);
  109. PlayerTextDrawFont(playerid, TextLogin[8][playerid], 0);
  110.  
  111. TextLogin[9][playerid] = CreatePlayerTextDraw(playerid, 385.763793, 129.750244, "BARRA RPG");
  112. PlayerTextDrawLetterSize(playerid, TextLogin[9][playerid], 0.000000, -0.234089);
  113. PlayerTextDrawTextSize(playerid, TextLogin[9][playerid], 328.352539, 0.000000);
  114. PlayerTextDrawAlignment(playerid, TextLogin[9][playerid], 1);
  115. PlayerTextDrawColor(playerid, TextLogin[9][playerid], 65535);
  116. PlayerTextDrawUseBox(playerid, TextLogin[9][playerid], true);
  117. PlayerTextDrawBoxColor(playerid, TextLogin[9][playerid], 65535);
  118. PlayerTextDrawSetShadow(playerid, TextLogin[9][playerid], 0);
  119. PlayerTextDrawSetOutline(playerid, TextLogin[9][playerid], 0);
  120. PlayerTextDrawBackgroundColor(playerid, TextLogin[9][playerid], 65535);
  121. PlayerTextDrawFont(playerid, TextLogin[9][playerid], 0);
  122.  
  123. TextLogin[10][playerid] = CreatePlayerTextDraw(playerid, 370.470703, 185.250000, "BARRA L");
  124. PlayerTextDrawLetterSize(playerid, TextLogin[10][playerid], 0.000000, 0.945861);
  125. PlayerTextDrawTextSize(playerid, TextLogin[10][playerid], 264.352874, 0.000000);
  126. PlayerTextDrawAlignment(playerid, TextLogin[10][playerid], 1);
  127. PlayerTextDrawColor(playerid, TextLogin[10][playerid], 0);
  128. PlayerTextDrawUseBox(playerid, TextLogin[10][playerid], true);
  129. PlayerTextDrawBoxColor(playerid, TextLogin[10][playerid], -2139062017);
  130. PlayerTextDrawSetShadow(playerid, TextLogin[10][playerid], 0);
  131. PlayerTextDrawSetOutline(playerid, TextLogin[10][playerid], 0);
  132. PlayerTextDrawFont(playerid, TextLogin[10][playerid], 0);
  133.  
  134. TextLogin[11][playerid] = CreatePlayerTextDraw(playerid, 290.823394, 185.500030, "LOGIN");
  135. PlayerTextDrawLetterSize(playerid, TextLogin[11][playerid], 0.449999, 1.600000);
  136. PlayerTextDrawAlignment(playerid, TextLogin[11][playerid], 1);
  137. PlayerTextDrawColor(playerid, TextLogin[11][playerid], -1);
  138. PlayerTextDrawSetShadow(playerid, TextLogin[11][playerid], 0);
  139. PlayerTextDrawSetOutline(playerid, TextLogin[11][playerid], 1);
  140. PlayerTextDrawBackgroundColor(playerid, TextLogin[11][playerid], 255);
  141. PlayerTextDrawFont(playerid, TextLogin[11][playerid], 2);
  142. PlayerTextDrawSetProportional(playerid, TextLogin[11][playerid], 1);
  143. PlayerTextDrawSetSelectable(playerid, TextLogin[11][playerid], true);
  144.  
  145. TextLogin[12][playerid] = CreatePlayerTextDraw(playerid, 371.000122, 227.666275, "BARRA R");
  146. PlayerTextDrawLetterSize(playerid, TextLogin[12][playerid], 0.000000, 0.945861);
  147. PlayerTextDrawTextSize(playerid, TextLogin[12][playerid], 264.352874, 0.000000);
  148. PlayerTextDrawAlignment(playerid, TextLogin[12][playerid], 1);
  149. PlayerTextDrawColor(playerid, TextLogin[12][playerid], 0);
  150. PlayerTextDrawUseBox(playerid, TextLogin[12][playerid], true);
  151. PlayerTextDrawBoxColor(playerid, TextLogin[12][playerid], -2139062017);
  152. PlayerTextDrawSetShadow(playerid, TextLogin[12][playerid], 0);
  153. PlayerTextDrawSetOutline(playerid, TextLogin[12][playerid], 0);
  154. PlayerTextDrawFont(playerid, TextLogin[12][playerid], 0);
  155.  
  156. TextLogin[13][playerid] = CreatePlayerTextDraw(playerid, 271.117523, 226.750015, "RECUPERAR SENHA");
  157. PlayerTextDrawLetterSize(playerid, TextLogin[13][playerid], 0.238705, 1.850834);
  158. PlayerTextDrawTextSize(playerid, TextLogin[13][playerid], -43.764709, -2.333333);
  159. PlayerTextDrawAlignment(playerid, TextLogin[13][playerid], 1);
  160. PlayerTextDrawColor(playerid, TextLogin[13][playerid], -1);
  161. PlayerTextDrawSetShadow(playerid, TextLogin[13][playerid], 0);
  162. PlayerTextDrawSetOutline(playerid, TextLogin[13][playerid], 1);
  163. PlayerTextDrawBackgroundColor(playerid, TextLogin[13][playerid], 255);
  164. PlayerTextDrawFont(playerid, TextLogin[13][playerid], 2);
  165. PlayerTextDrawSetProportional(playerid, TextLogin[13][playerid], 1);
  166. PlayerTextDrawSetSelectable(playerid, TextLogin[13][playerid], true);
  167.  
  168. TextLogin[14][playerid] = CreatePlayerTextDraw(playerid, 371.058959, 270.666992, "BARRA S");
  169. PlayerTextDrawLetterSize(playerid, TextLogin[14][playerid], 0.000000, 0.945861);
  170. PlayerTextDrawTextSize(playerid, TextLogin[14][playerid], 264.352874, 0.000000);
  171. PlayerTextDrawAlignment(playerid, TextLogin[14][playerid], 1);
  172. PlayerTextDrawColor(playerid, TextLogin[14][playerid], 0);
  173. PlayerTextDrawUseBox(playerid, TextLogin[14][playerid], true);
  174. PlayerTextDrawBoxColor(playerid, TextLogin[14][playerid], -2139062017);
  175. PlayerTextDrawSetShadow(playerid, TextLogin[14][playerid], 0);
  176. PlayerTextDrawSetOutline(playerid, TextLogin[14][playerid], 0);
  177. PlayerTextDrawFont(playerid, TextLogin[14][playerid], 0);
  178.  
  179. TextLogin[15][playerid] = CreatePlayerTextDraw(playerid, 295.117523, 270.500000, "SAIR");
  180. PlayerTextDrawLetterSize(playerid, TextLogin[15][playerid], 0.449999, 1.600000);
  181. PlayerTextDrawAlignment(playerid, TextLogin[15][playerid], 1);
  182. PlayerTextDrawColor(playerid, TextLogin[15][playerid], -1);
  183. PlayerTextDrawSetShadow(playerid, TextLogin[15][playerid], 0);
  184. PlayerTextDrawSetOutline(playerid, TextLogin[15][playerid], 1);
  185. PlayerTextDrawBackgroundColor(playerid, TextLogin[15][playerid], 255);
  186. PlayerTextDrawFont(playerid, TextLogin[15][playerid], 2);
  187. PlayerTextDrawSetProportional(playerid, TextLogin[15][playerid], 1);
  188. PlayerTextDrawSetSelectable(playerid, TextLogin[15][playerid], true);
  189. }
  190.  
  191. show_TextsLogin(playerid) {
  192.  
  193. for(new text; text != sizeof TextLogin; text++) {
  194. PlayerTextDrawShow(playerid, TextLogin[text]);
  195. }
  196. }
  197.  
  198. hide_TextsLogin(playerid) { // Use onde for para ocultar os text
  199.  
  200. for(new text; text != sizeof TextLogin; text++) {
  201. PlayerTextDrawHide(playerid, TextLogin[text]);
  202. }
  203. }
  204.  
  205. public OnPlayerConnect(playerid)
  206. {
  207. CriarTextsLogin(playerid);
  208. return 1;
  209. }
  210.  
  211. public OnPlayerRequestClass( playerid, classid )
  212. {
  213. if (IsPlayerNPC(playerid))
  214. {
  215. SpawnPlayer(playerid);
  216. return 1;
  217. }
  218. if (!IsPlayerNPC(playerid))
  219. {
  220. LimparChat(playerid, 50);
  221.  
  222. if(pInfo[playerid][Logado] == false) {
  223. show_TextsLogin(playerid);
  224. }
  225. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement