Guest User

Untitled

a guest
Jun 4th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:startpretest(playerid, params[])
  2. {
  3. if(isnull(params))
  4. {
  5. return SendClientMessage(playerid, -1, "USAGE: /startpretest [standard/trucker]");
  6. }
  7. if(!strcmp(params, "standard", true))
  8. {
  9. SetPlayerCheckpoint(playerid, 1020.6112,1376.4153,10.4650, 3.0);
  10. return 1;
  11. }
  12. if(!strcmp(params, "trucker", true))
  13. {
  14. SetPlayerCheckpoint(playerid, 1020.6112,1376.4153,10.4650, 3.0);
  15. return 1;
  16. }
  17. return 1;
  18. }
  19.  
  20. public OnPlayerEnterCheckpoint(playerid)
  21. {
  22. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1020.6112,1376.4153,10.4650))
  23. {
  24. SetPlayerCheckpoint(playerid, 1005.9565,1322.0747,10.4038, 3.0);
  25. }
  26. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1005.9565,1322.0747,10.4038))
  27. {
  28. SetPlayerCheckpoint(playerid, 1017.7825,1191.3296,10.4244, 3.0);
  29. }
  30. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1017.7825,1191.3296,10.4244))
  31. {
  32. SetPlayerCheckpoint(playerid, 1017.7825,1191.3296,10.4244, 3.0);
  33. }
  34. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1017.7825,1191.3296,10.4244))
  35. {
  36. SetPlayerCheckpoint(playerid, 1406.5076,1190.9941,10.4098, 3.0);
  37. }
  38. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1406.5076,1190.9941,10.4098))
  39. {
  40. SetPlayerCheckpoint(playerid, 1444.3302,1150.9672,10.4055, 3.0);
  41. }
  42. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1444.3302,1150.9672,10.4055))
  43. {
  44. SetPlayerCheckpoint(playerid, 1504.7687,1118.6617,10.4031, 3.0);
  45. }
  46. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1504.7687,1118.6617,10.4031))
  47. {
  48. SetPlayerCheckpoint(playerid, 1505.3162,971.6613,10.4060, 3.0);
  49. }
  50. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1505.3162,971.6613,10.4060))
  51. {
  52. SetPlayerCheckpoint(playerid, 1530.0887,912.0064,10.4058, 3.0);
  53. }
  54. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1530.0887,912.0064,10.4058))
  55. {
  56. SetPlayerCheckpoint(playerid, 1564.5573,889.8911,11.3500, 3.0);
  57. }
  58. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1564.5573,889.8911,11.3500))
  59. {
  60. SetPlayerCheckpoint(playerid, 1564.9735,737.2898,10.4058, 3.0);
  61. }
  62. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1564.9735,737.2898,10.4058))
  63. {
  64. SetPlayerCheckpoint(playerid, 1542.5078,656.0610,10.4049, 3.0);
  65. }
  66. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1542.5078,656.0610,10.4049))
  67. {
  68. SetPlayerCheckpoint(playerid, 1450.9310,668.4312,10.3973, 3.0);
  69. }
  70. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1450.9310,668.4312,10.3973))
  71. {
  72. SetPlayerCheckpoint(playerid, 1520.4220,687.2266,10.4055, 3.0);
  73. }
  74. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1520.4220,687.2266,10.4055))
  75. {
  76. SetPlayerCheckpoint(playerid, 1542.9778,651.0878,10.4063, 3.0);
  77. }
  78. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1542.9778,651.0878,10.4063))
  79. {
  80. SetPlayerCheckpoint(playerid, 1569.5994,823.7298,13.1724, 3.0);
  81. }
  82. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1569.5994,823.7298,13.1724))
  83. {
  84. SetPlayerCheckpoint(playerid, 1570.0299,1096.5000,10.4053, 3.0);
  85. }
  86. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1570.0299,1096.5000,10.4053))
  87. {
  88. SetPlayerCheckpoint(playerid, 1589.7512,1130.0542,10.4049, 3.0);
  89. }
  90. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1589.7512,1130.0542,10.4049))
  91. {
  92. SetPlayerCheckpoint(playerid, 1822.4714,1131.0854,12.8243, 3.0);
  93. }
  94. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1822.4714,1131.0854,12.8243))
  95. {
  96. SetPlayerCheckpoint(playerid, 1865.8409,1014.3036,10.4135, 3.0);
  97. }
  98. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1865.8409,1014.3036,10.4135))
  99. {
  100. SetPlayerCheckpoint(playerid, 1909.8900,931.4325,10.5368, 3.0);
  101. }
  102. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1909.8900,931.4325,10.5368))
  103. {
  104. SetPlayerCheckpoint(playerid, 2008.7811,953.2060,10.4019, 3.0);
  105. }
  106. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2008.7811,953.2060,10.4019))
  107. {
  108. SetPlayerCheckpoint(playerid, 2025.0282,970.2595,10.2061, 3.0);
  109. }
  110. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2025.0282,970.2595,10.2061))
  111. {
  112. SetPlayerCheckpoint(playerid, 2044.6512,946.4937,9.6887, 3.0);
  113. }
  114. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2044.6512,946.4937,9.6887))
  115. {
  116. SetPlayerCheckpoint(playerid, 2025.0558,855.7150,6.4678, 3.0);
  117. }
  118. if(IsPlayerInRangeOfPoint(playerid, 3.0, 2025.0558,855.7150,6.4678))
  119. {
  120. SetPlayerCheckpoint(playerid, 1750.5667,854.7664,9.5262, 3.0);
  121. }
  122. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1750.5667,854.7664,9.5262))
  123. {
  124. SetPlayerCheckpoint(playerid, 1423.6104,855.0876,6.5457, 3.0);
  125. }
  126. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1423.6104,855.0876,6.5457))
  127. {
  128. SetPlayerCheckpoint(playerid, 1228.2996,1091.5067,6.5541, 3.0);
  129. }
  130. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1228.2996,1091.5067,6.5541))
  131. {
  132. SetPlayerCheckpoint(playerid, 1229.0439,1490.6394,6.4684, 3.0);
  133. }
  134. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1229.0439,1490.6394,6.4684))
  135. {
  136. SetPlayerCheckpoint(playerid, 1280.7559,1758.5303,9.5595, 3.0);
  137. }
  138. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1280.7559,1758.5303,9.5595))
  139. {
  140. SetPlayerCheckpoint(playerid, 1251.3341,1814.7012,12.2340, 3.0);
  141. }
  142. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1251.3341,1814.7012,12.2340))
  143. {
  144. SetPlayerCheckpoint(playerid, 1088.0281,1814.6488,10.4053, 3.0);
  145. }
  146. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1088.0281,1814.6488,10.4053))
  147. {
  148. SetPlayerCheckpoint(playerid, 1004.6922,1785.7732,10.4056, 3.0);
  149. }
  150. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1004.6922,1785.7732,10.4056))
  151. {
  152. SetPlayerCheckpoint(playerid, 1004.7479,1500.3807,10.4052, 3.0);
  153. }
  154. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1004.7479,1500.3807,10.4052))
  155. {
  156. SetPlayerCheckpoint(playerid, 1057.9442,1371.8005,10.4219, 3.0);
  157. }
  158. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1057.9442,1371.8005,10.4219))
  159. {
  160. SetPlayerCheckpoint(playerid, 1159.8411,1370.9576,10.4051, 3.0);
  161. }
  162. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1159.8411,1370.9576,10.4051))
  163. {
  164. DisablePlayerCheckpoint(playerid);
  165. SetVehicleToRespawn(1);
  166. SetVehicleToRespawn(2);
  167. SetVehicleToRespawn(3);
  168. }
  169. return 1;
  170. }
Advertisement
Add Comment
Please, Sign In to add comment