Advertisement
Guest User

Untitled

a guest
Jul 16th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.55 KB | None | 0 0
  1. new gPlayerCheckpointStatus[MAX_PLAYERS]; // Global
  2.  
  3. if(strcmp(cmdtext,"/start",true) == 0)
  4. {
  5. if(IsPlayerInJob(playerid,2))
  6. {
  7. new
  8. modelid,
  9. vehicleid;
  10. vehicleid = GetPlayerVehicleID( playerid );
  11. if( !vehicleid ) {
  12. SendClientMessage(playerid,ROT,"Du bist in keinem Fahrzeug!");
  13. return 1;
  14. }
  15. modelid = GetVehicleModel( vehicleid );
  16. if( modelid == 408)
  17. {
  18. gPlayerCheckpointStatus[playerid] = check1;
  19. SetPlayerCheckpoint(playerid, 2070.1125,-1986.1920,14.0974, 5.0);
  20. }
  21. else
  22. {
  23. SendClientMessage(playerid,ROT,"Du bist nicht in einem Müllwagen!");
  24. }
  25.  
  26. }
  27. return 1;
  28. }
  29.  
  30. public OnPlayerEnterCheckpoint(playerid)
  31. {
  32. new gPlayerCheckpointStatus[MAX_PLAYERS];
  33. switch (gPlayerCheckpointStatus[playerid])
  34. {
  35. case check1:
  36. {
  37. DisablePlayerCheckpoint(playerid);
  38. SetPlayerCheckpoint(playerid, 1961.4962,-1966.7809,14.1003, 5.0);
  39. gPlayerCheckpointStatus[playerid] = check2;
  40. }
  41. case check2:
  42. {
  43. DisablePlayerCheckpoint(playerid);
  44. SetPlayerCheckpoint(playerid, 1964.0538,-1782.9188,13.9324, 5.0);
  45. gPlayerCheckpointStatus[playerid] = check3;
  46. }
  47. case check3:
  48. {
  49. DisablePlayerCheckpoint(playerid);
  50. SetPlayerCheckpoint(playerid, 2008.5854,-1727.8459,14.0954, 5.0);
  51. gPlayerCheckpointStatus[playerid] = check4;
  52. }
  53. case check4:
  54. {
  55. DisablePlayerCheckpoint(playerid);
  56. SetPlayerCheckpoint(playerid, 2008.7031,-1692.7627,14.1031, 5.0);
  57. gPlayerCheckpointStatus[playerid] = check5;
  58. }
  59. case check5:
  60. {
  61. DisablePlayerCheckpoint(playerid);
  62. SetPlayerCheckpoint(playerid, 2008.5082,-1639.0389,14.0955, 5.0);
  63. gPlayerCheckpointStatus[playerid] = check6;
  64. }
  65. case check6:
  66. {
  67. DisablePlayerCheckpoint(playerid);
  68. SetPlayerCheckpoint(playerid, 2068.7617,-1605.4576,14.0950, 5.0);
  69. gPlayerCheckpointStatus[playerid] = check7;
  70. }
  71. case check7:
  72. {
  73. DisablePlayerCheckpoint(playerid);
  74. SetPlayerCheckpoint(playerid, 2074.2925,-1654.1500,14.0964, 5.0);
  75. gPlayerCheckpointStatus[playerid] = check8;
  76. }
  77. case check8:
  78. {
  79. DisablePlayerCheckpoint(playerid);
  80. SetPlayerCheckpoint(playerid, 2074.5410,-1707.5818,14.0990, 5.0);
  81. gPlayerCheckpointStatus[playerid] = check9;
  82. }
  83. case check9:
  84. {
  85. DisablePlayerCheckpoint(playerid);
  86. SetPlayerCheckpoint(playerid, 2142.9006,-1746.6788,14.0157, 5.0);
  87. gPlayerCheckpointStatus[playerid] = check10;
  88. }
  89. case check10:
  90. {
  91. DisablePlayerCheckpoint(playerid);
  92. SetPlayerCheckpoint(playerid, 2185.3518,-1669.5153,15.0672, 5.0);
  93. gPlayerCheckpointStatus[playerid] = check11;
  94. }
  95. case check11:
  96. {
  97. DisablePlayerCheckpoint(playerid);
  98. SetPlayerCheckpoint(playerid, 2241.5491,-1646.8016,16.0380, 5.0);
  99. gPlayerCheckpointStatus[playerid] = check12;
  100. }
  101. case check12:
  102. {
  103. DisablePlayerCheckpoint(playerid);
  104. SetPlayerCheckpoint(playerid, 2310.5784,-1664.5812,14.8950, 5.0);
  105. gPlayerCheckpointStatus[playerid] = check13;
  106. }
  107. case check13:
  108. {
  109. DisablePlayerCheckpoint(playerid);
  110. SetPlayerCheckpoint(playerid, 2339.6250,-1716.8276,13.9077, 5.0);
  111. gPlayerCheckpointStatus[playerid] = check14;
  112. }
  113. case check14:
  114. {
  115. DisablePlayerCheckpoint(playerid);
  116. SetPlayerCheckpoint(playerid, 2418.3479,-1753.2440,14.0014, 5.0);
  117. gPlayerCheckpointStatus[playerid] = check15;
  118. }
  119. case check15:
  120. {
  121. DisablePlayerCheckpoint(playerid);
  122. SetPlayerCheckpoint(playerid, 2381.2705,-1936.2224,14.0924, 5.0);
  123. gPlayerCheckpointStatus[playerid] = check16;
  124. }
  125. case check16:
  126. {
  127. DisablePlayerCheckpoint(playerid);
  128. SetPlayerCheckpoint(playerid, 2391.1316,-1966.8835,14.00358, 5.0);
  129. gPlayerCheckpointStatus[playerid] = check17;
  130. }
  131. case check17:
  132. {
  133. DisablePlayerCheckpoint(playerid);
  134. SetPlayerCheckpoint(playerid, 2280.9380,-1966.2844,14.0533, 5.0);
  135. gPlayerCheckpointStatus[playerid] = check18;
  136. }
  137. case check18:
  138. {
  139. DisablePlayerCheckpoint(playerid);
  140. SetPlayerCheckpoint(playerid, 2261.7063,-2051.6626,13.9664, 5.0);
  141. gPlayerCheckpointStatus[playerid] = check19;
  142. }
  143. case check19:
  144. {
  145. DisablePlayerCheckpoint(playerid);
  146. SetPlayerCheckpoint(playerid, 2182.9937,-2142.0037,13.9502, 5.0);
  147. gPlayerCheckpointStatus[playerid] = check20;
  148. }
  149. case check20:
  150. {
  151. DisablePlayerCheckpoint(playerid);
  152. SetPlayerCheckpoint(playerid, 2102.8271,-2020.6099,14.0942, 5.0);
  153. gPlayerCheckpointStatus[playerid] = checkend;
  154. }
  155. case checkend:
  156. {
  157. DisablePlayerCheckpoint(playerid);
  158. GivePlayerMoney(playerid,3500);
  159. SendClientMessage(playerid,GRÜN,"Du hast die Straßen von Los Santos wieder sauber geräumt!");
  160. SendClientMessage(playerid,GRÜN,"Belohnung: 3500$");
  161. }
  162. }
  163.  
  164. return 1;
  165. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement