Guest User

Untitled

a guest
Feb 2nd, 2020
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. CistacTDShow(playerid, bool:show)
  2. {
  3. if(show == true)
  4. {
  5. CistacTD[playerid][0] = CreatePlayerTextDraw(playerid, 139.000000, 294.000000, "_");
  6. PlayerTextDrawBackgroundColor(playerid, CistacTD[playerid][0], 255);
  7. PlayerTextDrawFont(playerid, CistacTD[playerid][0], 1);
  8. PlayerTextDrawLetterSize(playerid, CistacTD[playerid][0], 0.500000, 3.799998);
  9. PlayerTextDrawColor(playerid, CistacTD[playerid][0], -1);
  10. PlayerTextDrawSetOutline(playerid, CistacTD[playerid][0], 0);
  11. PlayerTextDrawSetProportional(playerid, CistacTD[playerid][0], 1);
  12. PlayerTextDrawSetShadow(playerid, CistacTD[playerid][0], 1);
  13. PlayerTextDrawUseBox(playerid, CistacTD[playerid][0], 1);
  14. PlayerTextDrawBoxColor(playerid, CistacTD[playerid][0], 138);
  15. PlayerTextDrawTextSize(playerid, CistacTD[playerid][0], 35.000000, 2.000000);
  16. PlayerTextDrawSetSelectable(playerid, CistacTD[playerid][0], 0);
  17.  
  18. CistacTD[playerid][1] = CreatePlayerTextDraw(playerid, 139.000000, 294.000000, "_");
  19. PlayerTextDrawBackgroundColor(playerid, CistacTD[playerid][1], 255);
  20. PlayerTextDrawFont(playerid, CistacTD[playerid][1], 1);
  21. PlayerTextDrawLetterSize(playerid, CistacTD[playerid][1], 0.500000, -0.300000);
  22. PlayerTextDrawColor(playerid, CistacTD[playerid][1], -1);
  23. PlayerTextDrawSetOutline(playerid, CistacTD[playerid][1], 0);
  24. PlayerTextDrawSetProportional(playerid, CistacTD[playerid][1], 1);
  25. PlayerTextDrawSetShadow(playerid, CistacTD[playerid][1], 1);
  26. PlayerTextDrawUseBox(playerid, CistacTD[playerid][1], 1);
  27. PlayerTextDrawBoxColor(playerid, CistacTD[playerid][1], 8454143);
  28. PlayerTextDrawTextSize(playerid, CistacTD[playerid][1], 35.000000, 2.000000);
  29. PlayerTextDrawSetSelectable(playerid, CistacTD[playerid][1], 0);
  30.  
  31. CistacTD[playerid][2] = CreatePlayerTextDraw(playerid, 102.000000, 298.000000, "ld_beat:up");
  32. PlayerTextDrawBackgroundColor(playerid, CistacTD[playerid][2], 0);
  33. PlayerTextDrawFont(playerid, CistacTD[playerid][2], 5);
  34. PlayerTextDrawLetterSize(playerid, CistacTD[playerid][2], 0.500000, -0.400000);
  35. PlayerTextDrawColor(playerid, CistacTD[playerid][2], -1);
  36. PlayerTextDrawSetOutline(playerid, CistacTD[playerid][2], 0);
  37. PlayerTextDrawSetProportional(playerid, CistacTD[playerid][2], 1);
  38. PlayerTextDrawSetShadow(playerid, CistacTD[playerid][2], 1);
  39. PlayerTextDrawUseBox(playerid, CistacTD[playerid][2], 1);
  40. PlayerTextDrawBoxColor(playerid, CistacTD[playerid][2], 10);
  41. PlayerTextDrawTextSize(playerid, CistacTD[playerid][2], 55.000000, 53.000000);
  42. PlayerTextDrawSetPreviewModel(playerid, CistacTD[playerid][2], 574);
  43. PlayerTextDrawSetPreviewRot(playerid, CistacTD[playerid][2], -16.000000, 0.000000, -55.000000, 1.000000);
  44. PlayerTextDrawSetSelectable(playerid, CistacTD[playerid][2], 0);
  45.  
  46. CistacTD[playerid][3] = CreatePlayerTextDraw(playerid, 63.000000, 298.000000, "Ocisceno:");
  47. PlayerTextDrawBackgroundColor(playerid, CistacTD[playerid][3], 255);
  48. PlayerTextDrawFont(playerid, CistacTD[playerid][3], 2);
  49. PlayerTextDrawLetterSize(playerid, CistacTD[playerid][3], 0.210000, 0.899999);
  50. PlayerTextDrawColor(playerid, CistacTD[playerid][3], 8454143);
  51. PlayerTextDrawSetOutline(playerid, CistacTD[playerid][3], 0);
  52. PlayerTextDrawSetProportional(playerid, CistacTD[playerid][3], 1);
  53. PlayerTextDrawSetShadow(playerid, CistacTD[playerid][3], 0);
  54. PlayerTextDrawSetSelectable(playerid, CistacTD[playerid][3], 0);
  55.  
  56. CistacTD[playerid][4] = CreatePlayerTextDraw(playerid, 84.000000, 309.000000, "0/30");
  57. PlayerTextDrawAlignment(playerid, CistacTD[playerid][4], 2);
  58. PlayerTextDrawBackgroundColor(playerid, CistacTD[playerid][4], 255);
  59. PlayerTextDrawFont(playerid, CistacTD[playerid][4], 2);
  60. PlayerTextDrawLetterSize(playerid, CistacTD[playerid][4], 0.210000, 0.899999);
  61. PlayerTextDrawColor(playerid, CistacTD[playerid][4], -1);
  62. PlayerTextDrawSetOutline(playerid, CistacTD[playerid][4], 0);
  63. PlayerTextDrawSetProportional(playerid, CistacTD[playerid][4], 1);
  64. PlayerTextDrawSetShadow(playerid, CistacTD[playerid][4], 0);
  65. PlayerTextDrawSetSelectable(playerid, CistacTD[playerid][4], 0);
  66. for( new i = 0; i < 5; i ++ )
  67. {
  68. PlayerTextDrawShow(playerid, CistacTD[playerid][i]);
  69. }
  70. }
  71. else if( show == false )
  72. {
  73. for( new i = 0; i < 5; i ++)
  74. {
  75. PlayerTextDrawHide(playerid, CistacTD[playerid][i]);
  76. PlayerTextDrawDestroy(playerid, CistacTD[playerid][i]);
  77. CistacTD[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
  78. }
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment