Advertisement
BodyBoardVEVO

IntroTD

Aug 8th, 2013
2,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. //Intro Textdraw made by BodyBoardVEVO aka Rzzy
  2. //Please Dont Remove Credits
  3. #include <a_samp>
  4. #include <YSI\y_ini>
  5.  
  6. new Text:IntroTD0;
  7. new Text:IntroTD1;
  8. new Text:IntroTD2;
  9. new Text:IntroTD3;
  10. new Text:IntroTD4;
  11.  
  12. new Text:IntroTD5;
  13. new Text:IntroTD6;
  14. new Text:IntroTD7;
  15. new Text:IntroTD8;
  16.  
  17. #define COLOR_YELLOW 0xFFFF00AA
  18. #define COLOR_LIGHTBLUE 0x33CCFFAA
  19.  
  20. public OnGameModeInit()
  21. {
  22. IntroTD0 = TextDrawCreate(645.000000, 2.000000, "_");
  23. TextDrawBackgroundColor(IntroTD0, 255);
  24. TextDrawFont(IntroTD0, 1);
  25. TextDrawLetterSize(IntroTD0, 0.500000, 10.100002);
  26. TextDrawColor(IntroTD0, -1);
  27. TextDrawSetOutline(IntroTD0, 0);
  28. TextDrawSetProportional(IntroTD0, 1);
  29. TextDrawSetShadow(IntroTD0, 1);
  30. TextDrawUseBox(IntroTD0, 1);
  31. TextDrawBoxColor(IntroTD0, 255);
  32. TextDrawTextSize(IntroTD0, -5.000000, 0.000000);
  33.  
  34. IntroTD1 = TextDrawCreate(645.000000, 354.000000, "_");
  35. TextDrawBackgroundColor(IntroTD1, 255);
  36. TextDrawFont(IntroTD1, 1);
  37. TextDrawLetterSize(IntroTD1, 0.500000, 10.100002);
  38. TextDrawColor(IntroTD1, -1);
  39. TextDrawSetOutline(IntroTD1, 0);
  40. TextDrawSetProportional(IntroTD1, 1);
  41. TextDrawSetShadow(IntroTD1, 1);
  42. TextDrawUseBox(IntroTD1, 1);
  43. TextDrawBoxColor(IntroTD1, 255);
  44. TextDrawTextSize(IntroTD1, -5.000000, 0.000000);
  45.  
  46. IntroTD2 = TextDrawCreate(645.000000, 354.000000, "_");
  47. TextDrawBackgroundColor(IntroTD2, 255);
  48. TextDrawFont(IntroTD2, 1);
  49. TextDrawLetterSize(IntroTD2, 0.500000, 0.000000);
  50. TextDrawColor(IntroTD2, -1);
  51. TextDrawSetOutline(IntroTD2, 0);
  52. TextDrawSetProportional(IntroTD2, 1);
  53. TextDrawSetShadow(IntroTD2, 1);
  54. TextDrawUseBox(IntroTD2, 1);
  55. TextDrawBoxColor(IntroTD2, COLOR_LIGHTBLUE);
  56. TextDrawTextSize(IntroTD2, -5.000000, 0.000000);
  57.  
  58. IntroTD3 = TextDrawCreate(645.000000, 93.000000, "_");
  59. TextDrawBackgroundColor(IntroTD3, 255);
  60. TextDrawFont(IntroTD3, 1);
  61. TextDrawLetterSize(IntroTD3, 0.500000, 0.000000);
  62. TextDrawColor(IntroTD3, -1);
  63. TextDrawSetOutline(IntroTD3, 0);
  64. TextDrawSetProportional(IntroTD3, 1);
  65. TextDrawSetShadow(IntroTD3, 1);
  66. TextDrawUseBox(IntroTD3, 1);
  67. TextDrawBoxColor(IntroTD3, COLOR_LIGHTBLUE);
  68. TextDrawTextSize(IntroTD3, -5.000000, 0.000000);
  69.  
  70. IntroTD4 = TextDrawCreate(138.000000, 19.000000, "San Fierro Cops And Robbers");
  71. TextDrawBackgroundColor(IntroTD4, COLOR_YELLOW);
  72. TextDrawFont(IntroTD4, 3);
  73. TextDrawLetterSize(IntroTD4, 0.699999, 4.599997);
  74. TextDrawColor(IntroTD4, 255);
  75. TextDrawSetOutline(IntroTD4, 1);
  76. TextDrawSetProportional(IntroTD4, 1);
  77.  
  78. IntroTD5 = TextDrawCreate(252.000000, 333.000000, "San Fierro");
  79. TextDrawBackgroundColor(IntroTD5, 255);
  80. TextDrawFont(IntroTD5, 0);
  81. TextDrawLetterSize(IntroTD5, 0.869999, 4.099998);
  82. TextDrawColor(IntroTD5, -65281);
  83. TextDrawSetOutline(IntroTD5, 1);
  84. TextDrawSetProportional(IntroTD5, 1);
  85.  
  86. IntroTD6 = TextDrawCreate(221.000000, 372.000000, "Cops");
  87. TextDrawBackgroundColor(IntroTD6, 255);
  88. TextDrawFont(IntroTD6, 2);
  89. TextDrawLetterSize(IntroTD6, 0.500000, 1.000000);
  90. TextDrawColor(IntroTD6, 65535);
  91. TextDrawSetOutline(IntroTD6, 1);
  92. TextDrawSetProportional(IntroTD6, 1);
  93.  
  94. IntroTD7 = TextDrawCreate(283.000000, 372.000000, "And");
  95. TextDrawBackgroundColor(IntroTD7, 255);
  96. TextDrawFont(IntroTD7, 3);
  97. TextDrawLetterSize(IntroTD7, 0.500000, 1.000000);
  98. TextDrawColor(IntroTD7, -1);
  99. TextDrawSetOutline(IntroTD7, 1);
  100. TextDrawSetProportional(IntroTD7, 1);
  101.  
  102. IntroTD8 = TextDrawCreate(320.000000, 372.000000, "Robbers");
  103. TextDrawBackgroundColor(IntroTD8, 255);
  104. TextDrawFont(IntroTD8, 2);
  105. TextDrawLetterSize(IntroTD8, 0.500000, 1.000000);
  106. TextDrawColor(IntroTD8, -16776961);
  107. TextDrawSetOutline(IntroTD8, 1);
  108. TextDrawSetProportional(IntroTD8, 1);
  109. return 1;
  110. }
  111. public OnPlayerConnect(playerid)
  112. {
  113. TextDrawShowForPlayer(playerid,IntroTD0);
  114. TextDrawShowForPlayer(playerid,IntroTD1);
  115. TextDrawShowForPlayer(playerid,IntroTD2);
  116. TextDrawShowForPlayer(playerid,IntroTD3);
  117. TextDrawShowForPlayer(playerid,IntroTD4);
  118. TextDrawShowForPlayer(playerid,IntroTD5);
  119. TextDrawShowForPlayer(playerid,IntroTD6);
  120. TextDrawShowForPlayer(playerid,IntroTD7);
  121. TextDrawShowForPlayer(playerid,IntroTD8);
  122. return 1;
  123. }
  124. public OnPlayerSpawn(playerid)
  125. {
  126. TextDrawHideForPlayer(playerid, IntroTD0);
  127. TextDrawHideForPlayer(playerid, IntroTD1);
  128. TextDrawHideForPlayer(playerid, IntroTD2);
  129. TextDrawHideForPlayer(playerid, IntroTD3);
  130. TextDrawHideForPlayer(playerid, IntroTD4);
  131. TextDrawHideForPlayer(playerid, IntroTD5);
  132. TextDrawHideForPlayer(playerid, IntroTD6);
  133. TextDrawHideForPlayer(playerid, IntroTD7);
  134. TextDrawHideForPlayer(playerid, IntroTD8);
  135. return 1;
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement