Guest User

Blood_Screen2.inc

a guest
Nov 28th, 2015
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. /* ///////////////////
  2. Created: 26/11/2015
  3. Updated: 28/11/2015
  4. By: UltraScripter
  5. ///////////////////
  6. ///////////////////
  7. */
  8.  
  9. #if defined _Blood_Screen2_included
  10. #endinput
  11. #define _Blood_Screen2_Included
  12. #endif
  13.  
  14. new IsBloodscreenUsed = 0;
  15.  
  16. /*
  17. native ShowPlayerBloodScreen(playerid, bloodtype);
  18. */
  19.  
  20. #define BLOOD_TYPE_1 1000
  21. #define BLOOD_TYPE_2 1001
  22. #define BLOOD_TYPE_3 1003
  23.  
  24. new Text:incBloodsc[MAX_PLAYERS];
  25.  
  26. stock ShowPlayerBloodScreen(playerid, bloodtype)
  27. {
  28. if(IsBloodscreenUsed == 0)
  29. {
  30. IsBloodscreenUsed = 1;
  31. incBloodsc[playerid] = TextDrawCreate(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. TextDrawAlignment(incBloodsc[playerid], 2);
  33. TextDrawUseBox(incBloodsc[playerid], 1);
  34. TextDrawBoxColor(incBloodsc[playerid], 0xFF000088);
  35. TextDrawTextSize(incBloodsc[playerid], 5000.0, 5000.0);
  36. }
  37. if(IsBloodscreenUsed == 1)
  38. {
  39. incBloodsc[playerid] = TextDrawCreate(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~_");
  40. TextDrawAlignment(incBloodsc[playerid], 2);
  41. TextDrawUseBox(incBloodsc[playerid], 1);
  42. if(bloodtype == BLOOD_TYPE_1)
  43. {
  44. TextDrawBoxColor(incBloodsc[playerid], 0xFF000022);
  45. }
  46. if(bloodtype == BLOOD_TYPE_2)
  47. {
  48. TextDrawBoxColor(incBloodsc[playerid], 0xFF000066);
  49. }
  50. if(bloodtype == BLOOD_TYPE_3)
  51. {
  52. TextDrawBoxColor(incBloodsc[playerid], 0xFF000088);
  53. }
  54. TextDrawTextSize(incBloodsc[playerid], 5000.0, 5000.0);
  55. TextDrawShowForPlayer(playerid, incBloodsc[playerid]);
  56. SetTimerEx("incccLowerBlood", 1000, false, "i", playerid);
  57. }
  58. return 1;
  59. }
  60.  
  61. forward incccLowerBlood(playerid);
  62.  
  63. public incccLowerBlood(playerid)
  64. {
  65. TextDrawHideForPlayer(playerid, incBloodsc[playerid]);
  66. return 1;
  67. }
  68.  
  69. /* ///////////////////
  70. Created: 26/11/2015
  71. Updated: 28/11/2015
  72. By: UltraScripter
  73. ///////////////////
  74. ///////////////////
  75. */
Advertisement
Add Comment
Please, Sign In to add comment