Falke1992

System

Jun 29th, 2011
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.97 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COLOR_YELLOW 0xF6F60000
  4. #define Missioneins 1
  5. #define Missionzwei 2
  6. #define Ende 3
  7.  
  8.  
  9. public OnPlayerCommandText(playerid, cmdtext[])
  10. {
  11.     if (strcmp("/Start", cmdtext, true, 6) == 0)
  12.     {
  13.         if(IsPlayerInVehicle(playerid, 574))
  14.         {
  15.         new gPlayerCheckpointStatus[MAX_PLAYERS];
  16.         gPlayerCheckpointStatus[playerid] = Missioneins;
  17.         SetPlayerCheckpoint(playerid, 999.1933,-897.0499,42.2514, 5.0);
  18.         }
  19.         else
  20.         {
  21.         SendClientMessage(playerid, COLOR_YELLOW, "Du bist nicht im Richtigen Fahrzeug !");
  22.         }
  23.         return 1;
  24.     }
  25.     return 0;
  26. }
  27.  
  28. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  29. {
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerExitVehicle(playerid, vehicleid)
  34. {
  35.     return 1;
  36. }
  37.  
  38. public OnPlayerStateChange(playerid, newstate, oldstate)
  39. {
  40.     return 1;
  41. }
  42.  
  43. public OnPlayerEnterCheckpoint(playerid)
  44. {
  45.    new gPlayerCheckpointStatus[MAX_PLAYERS];
  46.    switch (gPlayerCheckpointStatus[playerid])
  47.     {
  48.         case Missioneins:
  49.         {
  50.                 DisablePlayerCheckpoint(playerid);
  51.                 SetPlayerCheckpoint(playerid, 2374.7703,-1892.0033,13.3828, 5.0);
  52.                 gPlayerCheckpointStatus[playerid] = Missionzwei;
  53.         }
  54.         case Missionzwei:
  55.         {
  56.                 DisablePlayerCheckpoint(playerid);
  57.                 SetPlayerCheckpoint(playerid, 785.2900,-1607.1732,13.3906, 5.0);
  58.                 gPlayerCheckpointStatus[playerid] = Ende;
  59.         }
  60.         case Ende:
  61.         {
  62.             GivePlayerMoney(playerid,1000);
  63.             DisablePlayerCheckpoint(playerid);
  64.         }
  65.     }
  66.    return 1;
  67. }
  68.  
  69.  
  70. public OnRconCommand(cmd[])
  71. {
  72.     return 1;
  73. }
  74.  
  75. public OnPlayerRequestSpawn(playerid)
  76. {
  77.     return 1;
  78. }
  79.  
  80. public OnObjectMoved(objectid)
  81. {
  82.     return 1;
  83. }
  84.  
  85. public OnPlayerObjectMoved(playerid, objectid)
  86. {
  87.     return 1;
  88. }
  89.  
  90. public OnPlayerPickUpPickup(playerid, pickupid)
  91. {
  92.     return 1;
  93. }
  94.  
  95. public OnVehicleMod(playerid, vehicleid, componentid)
  96. {
  97.     return 1;
  98. }
  99.  
  100. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  101. {
  102.     return 1;
  103. }
  104.  
  105. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  106. {
  107.     return 1;
  108. }
  109.  
  110. public OnPlayerSelectedMenuRow(playerid, row)
  111. {
  112.     return 1;
  113. }
  114.  
  115. public OnPlayerExitedMenu(playerid)
  116. {
  117.     return 1;
  118. }
  119.  
  120. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  121. {
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  126. {
  127.     return 1;
  128. }
  129.  
  130. public OnRconLoginAttempt(ip[], password[], success)
  131. {
  132.     return 1;
  133. }
  134.  
  135. public OnPlayerUpdate(playerid)
  136. {
  137.     return 1;
  138. }
  139.  
  140. public OnPlayerStreamIn(playerid, forplayerid)
  141. {
  142.     return 1;
  143. }
  144.  
  145. public OnPlayerStreamOut(playerid, forplayerid)
  146. {
  147.     return 1;
  148. }
  149.  
  150. public OnVehicleStreamIn(vehicleid, forplayerid)
  151. {
  152.     return 1;
  153. }
  154.  
  155. public OnVehicleStreamOut(vehicleid, forplayerid)
  156. {
  157.     return 1;
  158. }
  159.  
  160. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  161. {
  162.     return 1;
  163. }
  164.  
  165. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  166. {
  167.     return 1;
  168. }
Advertisement
Add Comment
Please, Sign In to add comment