Guest User

Blood Screen include

a guest
Nov 26th, 2015
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. /* ///////////////////
  2. Created: 26/11/2015
  3. Author: UltraScripter
  4. ///////////////////
  5. ///////////////////
  6. */
  7.  
  8. #if defined _Blood_Screen_included
  9. #endinput
  10. #define _Blood_Screen_Included
  11. #endif
  12.  
  13. #define BLOOD_TYPE_1 1000
  14. #define BLOOD_TYPE_2 1001
  15. #define BLOOD_TYPE_3 1003
  16. #define BLOOD_TYPE_4 1004
  17. #define BLOOD_TYPE_5 1005
  18. #define BLOOD_TYPE_6 1006
  19. #define BLOOD_TYPE_7 1007
  20. #define BLOOD_TYPE_8 1008
  21. #define BLOOD_TYPE_9 1009
  22.  
  23. /*
  24. native ShowPlayerBloodScreen(playerid, type);
  25. */
  26.  
  27. new PlayerText:incBloodsc[11];
  28.  
  29. stock ShowPlayerBloodScreen(playerid, type)
  30. {
  31. incBloodsc[0] = CreatePlayerTextDraw(playerid, 0.1, 0.1, "~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_~n~_");
  32. PlayerTextDrawAlignment(playerid, incBloodsc[0], 2);
  33. PlayerTextDrawUseBox(playerid, incBloodsc[0], 1);
  34. if(type == BLOOD_TYPE_1)
  35. {
  36. PlayerTextDrawBoxColor(playerid, incBloodsc[0], 0xFF000011);
  37. }
  38. if(type == BLOOD_TYPE_2)
  39. {
  40. PlayerTextDrawBoxColor(playerid, incBloodsc[0], 0xFF000022);
  41. }
  42. if(type == BLOOD_TYPE_3)
  43. {
  44. PlayerTextDrawColor(playerid, incBloodsc[0], 0xFF000033);
  45. }
  46. if(type == BLOOD_TYPE_4)
  47. {
  48. PlayerTextDrawBoxColor(playerid, incBloodsc[0], 0xFF000044);
  49. }
  50. if(type == BLOOD_TYPE_5)
  51. {
  52. PlayerTextDrawColor(playerid, incBloodsc[0], 0xFF000055);
  53. }
  54. if(type == BLOOD_TYPE_6)
  55. {
  56. PlayerTextDrawBoxColor(playerid, incBloodsc[0], 0xFF000066);
  57. }
  58. if(type == BLOOD_TYPE_7)
  59. {
  60. PlayerTextDrawColor(playerid, incBloodsc[0], 0xFF000077);
  61. }
  62. if(type == BLOOD_TYPE_8)
  63. {
  64. PlayerTextDrawBoxColor(playerid, incBloodsc[0], 0xFF000088);
  65. }
  66. if(type == BLOOD_TYPE_9)
  67. {
  68. PlayerTextDrawBoxColor(playerid, incBloodsc[0], 0xFF000099);
  69. }
  70. PlayerTextDrawTextSize(playerid, incBloodsc[0], 5000.0, 5000.0);
  71. PlayerTextDrawShow(playerid, incBloodsc[0]);
  72. incBloodsc[1] = CreatePlayerTextDraw(playerid, 50.0, 320.0, "LD_POOL:ball");
  73. PlayerTextDrawFont(playerid, incBloodsc[1], 4);
  74. PlayerTextDrawUseBox(playerid, incBloodsc[1], 1);
  75. PlayerTextDrawTextSize(playerid, incBloodsc[1], 40.0, 40.0);
  76. PlayerTextDrawColor(playerid, incBloodsc[1], 0xCE0000FF);
  77. PlayerTextDrawShow(playerid, incBloodsc[1]);
  78. incBloodsc[2] = CreatePlayerTextDraw(playerid, 88.0, 340.0, "LD_POOL:ball");
  79. PlayerTextDrawFont(playerid, incBloodsc[2], 4);
  80. PlayerTextDrawUseBox(playerid, incBloodsc[2], 1);
  81. PlayerTextDrawTextSize(playerid, incBloodsc[2], 15.0, 15.0);
  82. PlayerTextDrawColor(playerid, incBloodsc[2], 0xCE0000FF);
  83. PlayerTextDrawShow(playerid, incBloodsc[2]);
  84. incBloodsc[3] = CreatePlayerTextDraw(playerid, 380.0, 10.0, "LD_POOL:ball");
  85. PlayerTextDrawFont(playerid, incBloodsc[3], 4);
  86. PlayerTextDrawUseBox(playerid, incBloodsc[3], 1);
  87. PlayerTextDrawTextSize(playerid, incBloodsc[3], 40.0, 40.0);
  88. PlayerTextDrawColor(playerid, incBloodsc[3], 0xCE0000FF);
  89. PlayerTextDrawShow(playerid, incBloodsc[3]);
  90. incBloodsc[4] = CreatePlayerTextDraw(playerid, 100.0, 20.0, "LD_POOL:ball");
  91. PlayerTextDrawFont(playerid, incBloodsc[4], 4);
  92. PlayerTextDrawUseBox(playerid, incBloodsc[4], 1);
  93. PlayerTextDrawTextSize(playerid, incBloodsc[4], 15.0, 15.0);
  94. PlayerTextDrawColor(playerid, incBloodsc[4], 0xCE0000FF);
  95. PlayerTextDrawShow(playerid, incBloodsc[4]);
  96. incBloodsc[5] = CreatePlayerTextDraw(playerid, 50.0, 240.0, "LD_POOL:ball");
  97. PlayerTextDrawFont(playerid, incBloodsc[5], 4);
  98. PlayerTextDrawUseBox(playerid, incBloodsc[5], 1);
  99. PlayerTextDrawTextSize(playerid, incBloodsc[5], 40.0, 40.0);
  100. PlayerTextDrawColor(playerid, incBloodsc[5], 0xCE0000FF);
  101. PlayerTextDrawShow(playerid, incBloodsc[5]);
  102. incBloodsc[6] = CreatePlayerTextDraw(playerid, 460.0, 280.0, "LD_POOL:ball");
  103. PlayerTextDrawFont(playerid, incBloodsc[6], 4);
  104. PlayerTextDrawUseBox(playerid, incBloodsc[6], 1);
  105. PlayerTextDrawTextSize(playerid, incBloodsc[6], 15.0, 15.0);
  106. PlayerTextDrawColor(playerid, incBloodsc[6], 0xCE0000FF);
  107. PlayerTextDrawShow(playerid, incBloodsc[6]);
  108. incBloodsc[7] = CreatePlayerTextDraw(playerid, 475.0, 25.0, "LD_POOL:ball");
  109. PlayerTextDrawFont(playerid, incBloodsc[7], 4);
  110. PlayerTextDrawUseBox(playerid, incBloodsc[7], 1);
  111. PlayerTextDrawTextSize(playerid, incBloodsc[7], 40.0, 40.0);
  112. PlayerTextDrawColor(playerid, incBloodsc[7], 0xCE0000FF);
  113. PlayerTextDrawShow(playerid, incBloodsc[7]);
  114. incBloodsc[8] = CreatePlayerTextDraw(playerid, 488.0, 475.0, "LD_POOL:ball");
  115. PlayerTextDrawFont(playerid, incBloodsc[8], 4);
  116. PlayerTextDrawUseBox(playerid, incBloodsc[8], 1);
  117. PlayerTextDrawTextSize(playerid, incBloodsc[8], 15.0, 15.0);
  118. PlayerTextDrawColor(playerid, incBloodsc[8], 0xCE0000FF);
  119. PlayerTextDrawShow(playerid, incBloodsc[8]);
  120. incBloodsc[9] = CreatePlayerTextDraw(playerid, 320.0, 470.0, "LD_POOL:ball");
  121. PlayerTextDrawFont(playerid, incBloodsc[9], 4);
  122. PlayerTextDrawUseBox(playerid, incBloodsc[9], 1);
  123. PlayerTextDrawTextSize(playerid, incBloodsc[9], 40.0, 40.0);
  124. PlayerTextDrawColor(playerid, incBloodsc[9], 0xCE0000FF);
  125. PlayerTextDrawShow(playerid, incBloodsc[9]);
  126. incBloodsc[10] = CreatePlayerTextDraw(playerid, 300.0, 470.0, "LD_POOL:ball");
  127. PlayerTextDrawFont(playerid, incBloodsc[10], 4);
  128. PlayerTextDrawUseBox(playerid, incBloodsc[10], 1);
  129. PlayerTextDrawTextSize(playerid, incBloodsc[10], 15.0, 15.0);
  130. PlayerTextDrawColor(playerid, incBloodsc[10], 0xCE0000FF);
  131. PlayerTextDrawShow(playerid, incBloodsc[10]);
  132. SetTimerEx("incccLowerBlood", 1000, false, "i", playerid);
  133. SetTimerEx("incccLowerBlood2", 1300, false, "i", playerid);
  134. SetTimerEx("incccLowerBlood3", 1700, false, "i", playerid);
  135. SetTimerEx("incccLowerBlood4", 2100, false, "i", playerid);
  136. SetTimerEx("incccLowerBlood5", 2500, false, "i", playerid);
  137. SetTimerEx("incccLowerBlood6", 4000, false, "i", playerid);
  138. return 1;
  139. }
  140.  
  141. forward incccLowerBlood(playerid);
  142.  
  143. public incccLowerBlood(playerid)
  144. {
  145. PlayerTextDrawDestroy(playerid, incBloodsc[4]);
  146. return 1;
  147. }
  148.  
  149. forward incccLowerBlood2(playerid);
  150.  
  151. public incccLowerBlood2(playerid)
  152. {
  153. PlayerTextDrawDestroy(playerid, incBloodsc[5]);
  154. PlayerTextDrawDestroy(playerid, incBloodsc[3]);
  155. return 1;
  156. }
  157.  
  158. forward incccLowerBlood3(playerid);
  159.  
  160. public incccLowerBlood3(playerid)
  161. {
  162. PlayerTextDrawDestroy(playerid, incBloodsc[2]);
  163. PlayerTextDrawDestroy(playerid, incBloodsc[1]);
  164. return 1;
  165. }
  166.  
  167. forward incccLowerBlood4(playerid);
  168.  
  169. public incccLowerBlood4(playerid)
  170. {
  171. PlayerTextDrawBoxColor(playerid, incBloodsc[0], 0xFF000055);
  172. PlayerTextDrawDestroy(playerid, incBloodsc[6]);
  173. PlayerTextDrawDestroy(playerid, incBloodsc[9]);
  174. return 1;
  175. }
  176.  
  177. forward incccLowerBlood5(playerid);
  178.  
  179. public incccLowerBlood5(playerid)
  180. {
  181. PlayerTextDrawDestroy(playerid, incBloodsc[7]);
  182. PlayerTextDrawDestroy(playerid, incBloodsc[8]);
  183. return 1;
  184. }
  185.  
  186. forward incccLowerBlood6(playerid);
  187.  
  188. public incccLowerBlood6(playerid)
  189. {
  190. PlayerTextDrawDestroy(playerid, incBloodsc[0]);
  191. return 1;
  192. }
  193.  
  194. /* ///////////////////
  195. Created: 26/11/2015
  196. Author: UltraScripter
  197. ///////////////////
  198. ///////////////////
  199. */
Advertisement
Add Comment
Please, Sign In to add comment