Guest User

Untitled

a guest
Aug 8th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 KB | None | 0 0
  1. stock CStatsTextDraw()
  2. {
  3. StatsTextDraw[0] = TextDrawCreate(569.000000, 151.000000, " "); // Veliki Box
  4. TextDrawBackgroundColor(StatsTextDraw[0], 255);
  5. TextDrawFont(StatsTextDraw[0], 1);
  6. TextDrawLetterSize(StatsTextDraw[0], 0.500000, 1.000000);
  7. TextDrawColor(StatsTextDraw[0], -1);
  8. TextDrawSetOutline(StatsTextDraw[0], 0);
  9. TextDrawSetProportional(StatsTextDraw[0], 1);
  10. TextDrawSetShadow(StatsTextDraw[0], 1);
  11. TextDrawUseBox(StatsTextDraw[0], 1);
  12. TextDrawBoxColor(StatsTextDraw[0], 100);
  13. TextDrawTextSize(StatsTextDraw[0], 81.000000, 0.000000);
  14.  
  15. StatsTextDraw[1] = TextDrawCreate(569.000000, 147.000000, " "); //Gornja crta
  16. TextDrawBackgroundColor(StatsTextDraw[1], 255);
  17. TextDrawFont(StatsTextDraw[1], 1);
  18. TextDrawLetterSize(StatsTextDraw[1], 0.500000, 1.000000);
  19. TextDrawColor(StatsTextDraw[1], 6469887);
  20. TextDrawSetOutline(StatsTextDraw[1], 0);
  21. TextDrawSetProportional(StatsTextDraw[1], 1);
  22. TextDrawSetShadow(StatsTextDraw[1], 1);
  23. TextDrawUseBox(StatsTextDraw[1], 1);
  24. TextDrawBoxColor(StatsTextDraw[1], 6469887);
  25. TextDrawTextSize(StatsTextDraw[1], 81.000000, 0.000000);
  26.  
  27. StatsTextDraw[2] = TextDrawCreate(569.000000, 308.000000, " "); //Donja Crta
  28. TextDrawBackgroundColor(StatsTextDraw[2], 255);
  29. TextDrawFont(StatsTextDraw[2], 1);
  30. TextDrawLetterSize(StatsTextDraw[2], 0.500000, 1.000000);
  31. TextDrawColor(StatsTextDraw[2], 6469887);
  32. TextDrawSetOutline(StatsTextDraw[2], 0);
  33. TextDrawSetProportional(StatsTextDraw[2], 1);
  34. TextDrawSetShadow(StatsTextDraw[2], 1);
  35. TextDrawUseBox(StatsTextDraw[2], 1);
  36. TextDrawBoxColor(StatsTextDraw[2], 6469887);
  37. TextDrawTextSize(StatsTextDraw[2], 81.000000, 0.000000);
  38.  
  39. for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
  40. {
  41. // ZIVOT SAMO TEXTDRAW
  42. StatsTextDrawPl[0][playerid] = TextDrawCreate(141.000000, 174.000000, "Zivot");
  43. TextDrawBackgroundColor(StatsTextDrawPl[0][playerid], 255);
  44. TextDrawFont(StatsTextDrawPl[0][playerid], 2);
  45. TextDrawLetterSize(StatsTextDrawPl[0][playerid], 0.310000, 0.899999);
  46. TextDrawColor(StatsTextDrawPl[0][playerid], -1);
  47. TextDrawSetOutline(StatsTextDrawPl[0][playerid], 0);
  48. TextDrawSetProportional(StatsTextDrawPl[0][playerid], 1);
  49. TextDrawSetShadow(StatsTextDrawPl[0][playerid], 1);
  50. // RACUN
  51. StatsTextDrawPl[1][playerid] = TextDrawCreate(288.000000, 174.000000, "Racun");
  52. TextDrawBackgroundColor(StatsTextDrawPl[1][playerid], 255);
  53. TextDrawFont(StatsTextDrawPl[1][playerid], 2);
  54. TextDrawLetterSize(StatsTextDrawPl[1][playerid], 0.310000, 0.899999);
  55. TextDrawColor(StatsTextDrawPl[1][playerid], -1);
  56. TextDrawSetOutline(StatsTextDrawPl[1][playerid], 0);
  57. TextDrawSetProportional(StatsTextDrawPl[1][playerid], 1);
  58. TextDrawSetShadow(StatsTextDrawPl[1][playerid], 1);
  59. // IMOVINA
  60. StatsTextDrawPl[2][playerid] = TextDrawCreate(433.000000, 174.000000, "Imovina");
  61. TextDrawBackgroundColor(StatsTextDrawPl[2][playerid], 255);
  62. TextDrawFont(StatsTextDrawPl[2][playerid], 2);
  63. TextDrawLetterSize(StatsTextDrawPl[2][playerid], 0.310000, 0.899999);
  64. TextDrawColor(StatsTextDrawPl[2][playerid], -1);
  65. TextDrawSetOutline(StatsTextDrawPl[2][playerid], 0);
  66. TextDrawSetProportional(StatsTextDrawPl[2][playerid], 1);
  67. TextDrawSetShadow(StatsTextDrawPl[2][playerid], 1);
  68. // IME i Prezime
  69. StatsTextDrawPl[3][playerid] = TextDrawCreate(140.000000, 130.000000, "Stats: Ime_Prezime");
  70. TextDrawBackgroundColor(StatsTextDrawPl[3][playerid], 255);
  71. TextDrawFont(StatsTextDrawPl[3][playerid], 1);
  72. TextDrawLetterSize(StatsTextDrawPl[3][playerid], 0.470000, 1.899999);
  73. TextDrawColor(StatsTextDrawPl[3][playerid], -1);
  74. TextDrawSetOutline(StatsTextDrawPl[3][playerid], 0);
  75. TextDrawSetProportional(StatsTextDrawPl[3][playerid], 1);
  76. TextDrawSetShadow(StatsTextDrawPl[3][playerid], 1);
  77. // gumbi osnovno - dodatno
  78. StatsTextDrawPl[4][playerid] = TextDrawCreate(240.000000, 293.000000, "Osnovno Dodatno");
  79. TextDrawBackgroundColor(StatsTextDrawPl[4][playerid], 255);
  80. TextDrawFont(StatsTextDrawPl[4][playerid], 2);
  81. TextDrawLetterSize(StatsTextDrawPl[4][playerid], 0.360000, 1.000000);
  82. TextDrawColor(StatsTextDrawPl[4][playerid], -1);
  83. TextDrawSetOutline(StatsTextDrawPl[4][playerid], 0);
  84. TextDrawSetProportional(StatsTextDrawPl[4][playerid], 1);
  85. TextDrawSetShadow(StatsTextDrawPl[4][playerid], 1);
  86.  
  87. StatsTextDrawPl[5][playerid] = TextDrawCreate(139.000000, 156.000000, "~y~~h~[ZIVOT] ~y~~h~[RACUN] ~y~~h~[IMOVINA]");
  88. TextDrawBackgroundColor(StatsTextDrawPl[5][playerid], 255);
  89. TextDrawFont(StatsTextDrawPl[5][playerid], 3);
  90. TextDrawLetterSize(StatsTextDrawPl[5][playerid], 0.480000, 1.000000);
  91. TextDrawColor(StatsTextDrawPl[5][playerid], -1);
  92. TextDrawSetOutline(StatsTextDrawPl[5][playerid], 0);
  93. TextDrawSetProportional(StatsTextDrawPl[5][playerid], 1);
  94. TextDrawSetShadow(StatsTextDrawPl[5][playerid], 1);
  95. }
  96. return 0;
  97. }
  98. stock SStatsTextDraw(playerid, igracu)
  99. {
  100. TextDrawShowForPlayer(igracu,StatsTextDraw[0]);
  101. TextDrawShowForPlayer(igracu,StatsTextDraw[1]);
  102. TextDrawShowForPlayer(igracu,StatsTextDraw[2]);
  103. TextDrawShowForPlayer(igracu,StatsTextDrawPl[3][playerid]);
  104. TextDrawShowForPlayer(igracu,StatsTextDrawPl[4][playerid]);
  105.  
  106. TextDrawShowForPlayer(igracu,StatsTextDrawPl[0][playerid]);
  107. TextDrawShowForPlayer(igracu,StatsTextDrawPl[1][playerid]);
  108. TextDrawShowForPlayer(igracu,StatsTextDrawPl[2][playerid]);
  109. TextDrawShowForPlayer(igracu,StatsTextDrawPl[5][playerid]); //slova
  110. return 0;
  111. }
  112. stock HStatsTextDraw(playerid,igracu)
  113. {
  114. TextDrawHideForPlayer(igracu,StatsTextDraw[0]);
  115. TextDrawHideForPlayer(igracu,StatsTextDraw[1]);
  116. TextDrawHideForPlayer(igracu,StatsTextDraw[2]);
  117. TextDrawHideForPlayer(igracu,StatsTextDrawPl[0][playerid]);
  118. TextDrawHideForPlayer(igracu,StatsTextDrawPl[1][playerid]);
  119. TextDrawHideForPlayer(igracu,StatsTextDrawPl[2][playerid]);
  120. TextDrawHideForPlayer(igracu,StatsTextDrawPl[3][playerid]);
  121. TextDrawHideForPlayer(igracu,StatsTextDrawPl[4][playerid]);
  122. TextDrawHideForPlayer(igracu,StatsTextDrawPl[5][playerid]);
  123. }
  124.  
  125. stock DStatsTextDraw()
  126. {
  127. TextDrawDestroy(StatsTextDraw[0]); // veliki box
  128. TextDrawDestroy(StatsTextDraw[1]); // plavo gore
  129. TextDrawDestroy(StatsTextDraw[2]); // plavo dole
  130. for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
  131. {
  132. TextDrawDestroy(StatsTextDrawPl[0][playerid]); //zivot
  133. TextDrawDestroy(StatsTextDrawPl[1][playerid]); //racun
  134. TextDrawDestroy(StatsTextDrawPl[2][playerid]); //imovina
  135. TextDrawDestroy(StatsTextDrawPl[3][playerid]); //ime prezime
  136. TextDrawDestroy(StatsTextDrawPl[4][playerid]); //gumbi
  137. TextDrawDestroy(StatsTextDrawPl[5][playerid]); //slova
  138. }
  139. return 0;
  140. }
Advertisement
Add Comment
Please, Sign In to add comment