ClockFPS

Phone

Apr 1st, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.38 KB | None | 0 0
  1. new PlayerText:PhoneTXD[MAX_PLAYERS][6];
  2.  
  3. public OnPlayerConnect(playerid)
  4. {
  5. //====== Celular
  6.  
  7. PhoneTXD[playerid][0] = CreatePlayerTextDraw(playerid, 462.889007, 227.831146, "box");
  8. PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][0], 0.000000, 20.000001);
  9. PlayerTextDrawTextSize(playerid, PhoneTXD[playerid][0], 0.000000, 100.000000);
  10. PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][0], 2);
  11. PlayerTextDrawColor(playerid, PhoneTXD[playerid][0], 255);
  12. PlayerTextDrawUseBox(playerid, PhoneTXD[playerid][0], 1);
  13. PlayerTextDrawBoxColor(playerid, PhoneTXD[playerid][0], 255);
  14. PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][0], 0);
  15. PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][0], 255);
  16. PlayerTextDrawFont(playerid, PhoneTXD[playerid][0], 1);
  17. PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][0], 1);
  18.  
  19. PhoneTXD[playerid][1] = CreatePlayerTextDraw(playerid, 462.889129, 233.804519, "box");
  20. PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][1], 0.000000, 16.888872);
  21. PlayerTextDrawTextSize(playerid, PhoneTXD[playerid][1], 0.000000, 92.000000);
  22. PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][1], 2);
  23. PlayerTextDrawColor(playerid, PhoneTXD[playerid][1], -1);
  24. PlayerTextDrawUseBox(playerid, PhoneTXD[playerid][1], 1);
  25. PlayerTextDrawBoxColor(playerid, PhoneTXD[playerid][1], -1);
  26. PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][1], 0);
  27. PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][1], 255);
  28. PlayerTextDrawFont(playerid, PhoneTXD[playerid][1], 1);
  29. PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][1], 1);
  30.  
  31. PhoneTXD[playerid][2] = CreatePlayerTextDraw(playerid, 462.000122, 391.102111, "O");
  32. PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][2], 0.468444, 1.819023);
  33. PlayerTextDrawTextSize(playerid, PhoneTXD[playerid][2], 0.000000, 20.000000);
  34. PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][2], 2);
  35. PlayerTextDrawColor(playerid, PhoneTXD[playerid][2], -1061109505);
  36. PlayerTextDrawUseBox(playerid, PhoneTXD[playerid][2], 1);
  37. PlayerTextDrawBoxColor(playerid, PhoneTXD[playerid][2], 0);
  38. PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][2], 0);
  39. PlayerTextDrawSetOutline(playerid, PhoneTXD[playerid][2], 1);
  40. PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][2], -1061109505);
  41. PlayerTextDrawFont(playerid, PhoneTXD[playerid][2], 1);
  42. PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][2], 1);
  43. PlayerTextDrawSetSelectable(playerid, PhoneTXD[playerid][2], true);
  44.  
  45. PhoneTXD[playerid][3] = CreatePlayerTextDraw(playerid, 428.222381, 270.639801, "O");
  46. PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][3], 0.400000, 1.600000);
  47. PlayerTextDrawTextSize(playerid, PhoneTXD[playerid][3], 0.000000, 20.000000);
  48. PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][3], 2);
  49. PlayerTextDrawColor(playerid, PhoneTXD[playerid][3], -16776961);
  50. PlayerTextDrawUseBox(playerid, PhoneTXD[playerid][3], 1);
  51. PlayerTextDrawBoxColor(playerid, PhoneTXD[playerid][3], 0);
  52. PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][3], 0);
  53. PlayerTextDrawSetOutline(playerid, PhoneTXD[playerid][3], 2);
  54. PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][3], 255);
  55. PlayerTextDrawFont(playerid, PhoneTXD[playerid][3], 1);
  56. PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][3], 1);
  57. PlayerTextDrawSetSelectable(playerid, PhoneTXD[playerid][3], true);
  58.  
  59. PhoneTXD[playerid][4] = CreatePlayerTextDraw(playerid, 423.333435, 283.582122, "gps");
  60. PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][4], 0.180444, 0.848355);
  61. PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][4], 1);
  62. PlayerTextDrawColor(playerid, PhoneTXD[playerid][4], 255);
  63. PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][4], 0);
  64. PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][4], 255);
  65. PlayerTextDrawFont(playerid, PhoneTXD[playerid][4], 1);
  66. PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][4], 1);
  67.  
  68. PhoneTXD[playerid][5] = CreatePlayerTextDraw(playerid, 460.666748, 217.875473, ".");
  69. PlayerTextDrawLetterSize(playerid, PhoneTXD[playerid][5], 0.580444, 1.525333);
  70. PlayerTextDrawAlignment(playerid, PhoneTXD[playerid][5], 1);
  71. PlayerTextDrawColor(playerid, PhoneTXD[playerid][5], -1);
  72. PlayerTextDrawSetShadow(playerid, PhoneTXD[playerid][5], 0);
  73. PlayerTextDrawBackgroundColor(playerid, PhoneTXD[playerid][5], 255);
  74. PlayerTextDrawFont(playerid, PhoneTXD[playerid][5], 1);
  75. PlayerTextDrawSetProportional(playerid, PhoneTXD[playerid][5], 1);
  76. return 1;
  77. }
  78.  
  79. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  80. {
  81. if(playertextid == PhoneTXD[playerid][4])
  82. {
  83. MEGAString[0] = EOS;
  84. EmDialog[playerid] = 1;
  85. strcat(MEGAString, "Los Santos\n");
  86. strcat(MEGAString, "San Fierro\n");
  87. strcat(MEGAString, "Caixas eletronicos\n");
  88. strcat(MEGAString, "Desativar\n");
  89. ShowPlayerDialog(playerid, D_GPSC, DIALOG_STYLE_LIST, "GPS", MEGAString, "Abrir", "Cancelar");
  90. }
  91. if(playertextid == PhoneTXD[playerid][3])
  92. {
  93. for(new i = 0; i < 6; i++)
  94. {
  95. PlayerTextDrawHide(playerid, PhoneTXD[playerid][i]);
  96. }
  97. CancelSelectTextDraw(playerid);
  98. }
  99. return 1;
  100. }
  101.  
  102. CMD:cel(playerid)
  103. {
  104. if(Player[playerid][ipLogado] == false) return 1;
  105. if(Player[playerid][pAdmin] < 7) return SCM(playerid, -1, "Comando em fase de teste");
  106. for(new i = 0; i < 19; i++) PlayerTextDrawShow(playerid, PhoneTXD[playerid][i]);
  107. SelectTextDraw(playerid, Vermelho);
  108. return 1;
  109. }
Add Comment
Please, Sign In to add comment