Guest User

Untitled

a guest
Oct 28th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.10 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////
  2. // INTRO BY SAVANA //
  3. // //
  4. // //
  5. // //
  6. // //
  7. ////////////////////////////////////////////////////////////////////////////////
  8.  
  9. #include <a_samp>
  10. main();
  11. new Text:roleplaybox;
  12. new StepSpawnPlayer[MAX_PLAYERS];
  13. new PlayerText:roleplay[MAX_PLAYERS];
  14. forward OnPlayerFinishInterpolateCamera(playerid, type);
  15.  
  16. public OnFilterScriptInit()
  17. {
  18. SetGameModeText("Test");
  19.  
  20. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  21.  
  22. roleplaybox = TextDrawCreate(205.212234, 372.750000, "-");
  23. TextDrawLetterSize(roleplaybox, 15.362092, 1.419166);
  24. TextDrawAlignment(roleplaybox, 1);
  25. TextDrawColor(roleplaybox, -1);
  26. TextDrawSetShadow(roleplaybox, 0);
  27. TextDrawSetOutline(roleplaybox, 2);
  28. TextDrawBackgroundColor(roleplaybox, 51);
  29. TextDrawFont(roleplaybox, 1);
  30. TextDrawSetProportional(roleplaybox, 1);
  31. return 1;
  32. }
  33.  
  34. public OnPlayerConnect(playerid)
  35. {
  36. StepSpawnPlayer[playerid] = 0;
  37.  
  38. roleplay[playerid] = CreatePlayerTextDraw(playerid, 317.188934, 349.999725, "B");
  39. PlayerTextDrawLetterSize(playerid, roleplay[playerid], 0.586340, 3.052500);
  40. PlayerTextDrawAlignment(playerid, roleplay[playerid], 2);
  41. PlayerTextDrawColor(playerid, roleplay[playerid], -1);
  42. PlayerTextDrawSetShadow(playerid, roleplay[playerid], -258);
  43. PlayerTextDrawSetOutline(playerid, roleplay[playerid], 0);
  44. PlayerTextDrawBackgroundColor(playerid, roleplay[playerid], -2139062017);
  45. PlayerTextDrawFont(playerid, roleplay[playerid], 1);
  46. PlayerTextDrawSetProportional(playerid, roleplay[playerid], 1);
  47. return 1;
  48. }
  49.  
  50. public OnPlayerRequestClass(playerid, classid)
  51. {
  52. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  53. SpawnPlayer(playerid);
  54. StepSpawnPlayer[playerid] = 1;
  55. return 1;
  56. }
  57.  
  58. public OnPlayerSpawn(playerid)
  59. {
  60. if(StepSpawnPlayer[playerid] == 1)
  61. {
  62. TogglePlayerSpectating(playerid, 1);
  63. SetPlayerPos(playerid, 155.3337, -1776.4384, 14.8978+5.0);
  64. TogglePlayerControllable(playerid, false);
  65. PlayAudioStreamForPlayer(playerid, "https://dl.dropboxusercontent.com/s/z834k2bgngbcmm6/kbgdHubwVdkG.128.mp3");
  66. SetPlayerCameraPos(playerid, 155.3337, -1776.4384, 14.8978);
  67. SetPlayerCameraLookAt(playerid, 156.2734, -1776.0850, 14.2128);
  68. InterpolateCameraLookAt(playerid, 156.2734, -1776.0850, 14.2128, 156.2713, -1776.0797, 14.7078, 5000, CAMERA_MOVE);
  69. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 0);
  70. PlayerTextDrawShow(playerid, roleplay[playerid]);
  71. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  72. }
  73. return 1;
  74. }
  75.  
  76. public OnPlayerFinishInterpolateCamera(playerid, type)
  77. {
  78. switch(type)
  79. {
  80. case 0:
  81. {
  82. InterpolateCameraPos(playerid, 187.600982, -1791.727050, 119.087432, 193.731567, -1789.235473, 118.845245, 5000);
  83. InterpolateCameraLookAt(playerid, 189.006942, -1790.279785, 114.512641, 195.057144, -1788.512817, 114.078620, 5000);
  84. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 1);
  85. PlayerTextDrawSetString(playerid, roleplay[playerid], "Ba");
  86. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  87. }
  88. case 1:
  89. {
  90. InterpolateCameraPos(playerid, 300.803771, -1753.841796, 59.482250, 332.887237, -1753.466674, 60.534908, 4000);
  91. InterpolateCameraLookAt(playerid, 302.467315, -1749.504394, 57.633026, 334.005126, -1748.907470, 58.813385, 4000);
  92. SetTimerEx("OnPlayerFinishInterpolateCamera", 4000-600, 0, "id", playerid, 2);
  93. PlayerTextDrawSetString(playerid, roleplay[playerid], "Bat");
  94. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  95. }
  96. case 2:
  97. {
  98. InterpolateCameraPos(playerid, 350.840972, -1794.716308, 13.146982, 346.193756, -1800.415649, 10.697548, 8000);
  99. InterpolateCameraLookAt(playerid, 348.053558, -1790.653564, 12.295993, 342.141357, -1797.657592, 9.712170, 8000);
  100. SetTimerEx("OnPlayerFinishInterpolateCamera", 8000-600, 0, "id", playerid, 3);
  101. PlayerTextDrawSetString(playerid, roleplay[playerid], "Batt");
  102. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  103. }
  104. case 3:
  105. {
  106. InterpolateCameraPos(playerid, 169.602859, -1775.647705, 6.933395, 169.617141, -1776.156250, 12.790164, 5000);
  107. InterpolateCameraLookAt(playerid, 169.547332, -1770.651367, 7.117267, 169.588928, -1771.159301, 12.618641, 5000);
  108. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 4);
  109. PlayerTextDrawSetString(playerid, roleplay[playerid], "Battl");
  110. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  111. }
  112. case 4:
  113. {
  114. InterpolateCameraPos(playerid, 386.273284, -2030.129516, 59.993469, 395.822113, -2044.595703, 59.993469, 5000);
  115. InterpolateCameraLookAt(playerid, 386.591949, -2029.832275, 55.012496, 396.252319, -2044.526245, 55.012496, 5000);
  116. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 5);
  117. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleC");
  118. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  119. }
  120. case 5:
  121. {
  122. InterpolateCameraPos(playerid, 341.018402, -2095.904052, 6.937077, 342.805603, -2096.498535, 6.648118, 5000);
  123. InterpolateCameraLookAt(playerid, 345.258972, -2093.501220, 5.821543, 347.304443, -2094.563964, 5.639461, 5000);
  124. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 6);
  125. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleCraft");
  126. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  127. }
  128. case 6:
  129. {
  130. InterpolateCameraPos(playerid, 481.641052, -1804.006835, 6.803627, 484.250549, -1802.375244, 6.660738, 5000);
  131. InterpolateCameraLookAt(playerid, 485.734344, -1801.318481, 5.794973, 488.679290, -1800.236572, 5.759444, 5000);
  132. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 7);
  133. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleCraft T");
  134. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  135. }
  136. case 7:
  137. {
  138. InterpolateCameraPos(playerid, 662.689147, -1868.981201, 6.513285, 665.048583, -1870.174438, 6.864079, 5000);
  139. InterpolateCameraLookAt(playerid, 658.142028, -1867.027709, 5.800874, 661.006286, -1867.294311, 6.260089, 5000);
  140. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 8);
  141. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleCraft Tr");
  142. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  143. }
  144. case 8:
  145. {
  146. InterpolateCameraPos(playerid, 542.343933, -1901.457519, 2.008791, 544.523376, -1901.883666, 2.085470, 5000);
  147. InterpolateCameraLookAt(playerid, 544.995666, -1897.256958, 2.577868, 546.892395, -1897.521118, 2.681705, 5000);
  148. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 9);
  149. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleCraft Tru");
  150. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  151. }
  152. case 9:
  153. {
  154. InterpolateCameraPos(playerid, 542.945800, -1863.699707, 4.435829, 539.996215, -1863.695556, 4.304386, 5000);
  155. InterpolateCameraLookAt(playerid, 537.950744, -1863.694213, 4.213245, 535.009887, -1863.990478, 4.081802, 5000);
  156. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 10);
  157. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleCraft Truck");
  158. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  159. }
  160. case 10:
  161. {
  162. InterpolateCameraPos(playerid, 329.131469, -1791.461791, 15.695193, 326.005981, -1793.169311, 15.695193, 3000);
  163. InterpolateCameraLookAt(playerid, 326.451660, -1787.321044, 14.874702, 323.228546, -1789.171630, 14.553024, 3000);
  164. SetTimerEx("OnPlayerFinishInterpolateCamera", 3000-600, 0, "id", playerid, 11);
  165. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleCraft Trucking G");
  166. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  167. }
  168. case 11:
  169. {
  170. InterpolateCameraPos(playerid, 514.983886, -1760.605102, 17.303379, 514.898010, -1760.553955, 18.443613, 3000);
  171. InterpolateCameraLookAt(playerid, 519.002807, -1762.556640, 15.058471, 519.071899, -1762.496826, 16.493217, 3000);
  172. SetTimerEx("OnPlayerFinishInterpolateCamera", 3000-600, 0, "id", playerid, 12);
  173. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleCraft Trucking Ga");
  174. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  175. }
  176. case 12:
  177. {
  178. InterpolateCameraPos(playerid, 524.473022, -1763.555786, 14.948656, 524.520751, -1763.556152, 15.495350, 5000);
  179. InterpolateCameraLookAt(playerid, 519.486999, -1763.304687, 14.671454, 519.540893, -1763.958007, 15.296504, 5000);
  180. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 13);
  181. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleCraft Trucking Gam");
  182. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  183. }
  184. case 13:
  185. {
  186. InterpolateCameraPos(playerid, 545.416076, -1772.326171, 8.179362, 547.233886, -1774.291870, 8.147984, 5000);
  187. InterpolateCameraLookAt(playerid, 548.811035, -1775.996459, 8.120770, 550.628845, -1777.962158, 8.089392, 5000);
  188. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 14);
  189. PlayerTextDrawSetString(playerid, roleplay[playerid], "BattleCraft Trucking Game");
  190. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  191. }
  192. case 14:
  193. {
  194. InterpolateCameraPos(playerid, 550.013793, -1772.057128, 16.024028, 552.169799, -1772.079223, 16.285087, 5000);
  195. InterpolateCameraLookAt(playerid, 546.803894, -1768.331054, 15.122734, 548.959899, -1768.353149, 15.383792, 5000);
  196. SetTimerEx("OnPlayerFinishInterpolateCamera", 5000-600, 0, "id", playerid, 15);
  197. TextDrawShowForPlayer(playerid, roleplaybox);
  198. for(new i = 0; i != 32; i++) SendClientMessage(playerid, -1, " ");
  199. }
  200. }
  201. }
Advertisement
Add Comment
Please, Sign In to add comment