Advertisement
Eduardo_efu

test this

Dec 30th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new Text:GTAV_DeathTD[4];
  4.  
  5. public OnFilterScriptInit()
  6. {
  7. GTAV_DeathTD[0] = TextDrawCreate(-117.333343, -119.192596, "ld_spac:black");
  8. TextDrawLetterSize(GTAV_DeathTD[0], 0.000000, 0.000000);
  9. TextDrawTextSize(GTAV_DeathTD[0], 914.333129, 783.984985);
  10. TextDrawAlignment(GTAV_DeathTD[0], 1);
  11. TextDrawColor(GTAV_DeathTD[0], -186);
  12. TextDrawSetShadow(GTAV_DeathTD[0], 0);
  13. TextDrawSetOutline(GTAV_DeathTD[0], 0);
  14. TextDrawBackgroundColor(GTAV_DeathTD[0], 255);
  15. TextDrawFont(GTAV_DeathTD[0], 4);
  16. TextDrawSetProportional(GTAV_DeathTD[0], 0);
  17. TextDrawSetShadow(GTAV_DeathTD[0], 0);
  18.  
  19. GTAV_DeathTD[1] = TextDrawCreate(320.000000, 190.000000, "~r~Wasted");
  20. TextDrawLetterSize(GTAV_DeathTD[1], 0.730997, 3.043555);
  21. TextDrawAlignment(GTAV_DeathTD[1], 2);
  22. TextDrawColor(GTAV_DeathTD[1], -76);
  23. TextDrawSetShadow(GTAV_DeathTD[1], 0);
  24. TextDrawSetOutline(GTAV_DeathTD[1], 0);
  25. TextDrawBackgroundColor(GTAV_DeathTD[1], 255);
  26. TextDrawFont(GTAV_DeathTD[1], 3);
  27. TextDrawSetProportional(GTAV_DeathTD[1], 1);
  28. TextDrawSetShadow(GTAV_DeathTD[1], 0);
  29.  
  30. GTAV_DeathTD[2] = TextDrawCreate(-17.666658, 165.300109, "");
  31. TextDrawLetterSize(GTAV_DeathTD[2], 0.000000, 0.000000);
  32. TextDrawTextSize(GTAV_DeathTD[2], 668.000061, 86.266624);
  33. TextDrawAlignment(GTAV_DeathTD[2], 1);
  34. TextDrawColor(GTAV_DeathTD[2], 140);
  35. TextDrawSetShadow(GTAV_DeathTD[2], 0);
  36. TextDrawSetOutline(GTAV_DeathTD[2], 0);
  37. TextDrawBackgroundColor(GTAV_DeathTD[2], 0);
  38. TextDrawFont(GTAV_DeathTD[2], 5);
  39. TextDrawSetProportional(GTAV_DeathTD[2], 0);
  40. TextDrawSetShadow(GTAV_DeathTD[2], 0);
  41. TextDrawSetPreviewModel(GTAV_DeathTD[2], 19454);
  42. TextDrawSetPreviewRot(GTAV_DeathTD[2], 0.000000, 0.000000, 70.000000, 0.375391);
  43.  
  44. GTAV_DeathTD[3] = TextDrawCreate(320.000000, 215.100479, "~r~Rest In ~r~~h~Peace");
  45. TextDrawLetterSize(GTAV_DeathTD[3], 0.352331, 1.583407);
  46. TextDrawAlignment(GTAV_DeathTD[3], 2);
  47. TextDrawColor(GTAV_DeathTD[3], -2359116);
  48. TextDrawSetShadow(GTAV_DeathTD[3], 0);
  49. TextDrawSetOutline(GTAV_DeathTD[3], 0);
  50. TextDrawBackgroundColor(GTAV_DeathTD[3], 255);
  51. TextDrawFont(GTAV_DeathTD[3], 1);
  52. TextDrawSetProportional(GTAV_DeathTD[3], 1);
  53. TextDrawSetShadow(GTAV_DeathTD[3], 0);
  54. return 1;
  55. }
  56.  
  57. public OnPlayerDeath(playerid, killerid, reason)
  58. {
  59. for(new x = 0; x<4; x++)
  60. {
  61. TextDrawShowForPlayer(playerid, GTAV_DeathTD[x]);
  62. }
  63. SetTimerEx("HideDTD", 3500, false, "i", playerid);
  64. return 1;
  65. }
  66.  
  67. forward HideDTD(playerid);
  68. public HideDTD(playerid)
  69. {
  70. for(new x = 0; x<4; x++)
  71. {
  72. TextDrawHideForPlayer(playerid, GTAV_DeathTD[x]);
  73. }
  74. return 1;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement