Guest User

Los Santos Waschanlage

a guest
Oct 10th, 2010
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.47 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define TICKETPREIS 50
  4. #define MSG_COLOR 0xBBBBBBFF
  5.  
  6. new waschan1;
  7. new waschan2;
  8. new waschzu1;
  9. new waschzu2;
  10. new waschzu3;
  11.  
  12.  
  13. public OnFilterScriptInit()
  14. {
  15.     print("\n--------------------------------------");
  16.     print(" Alpas Waschanlage");
  17.     print("--------------------------------------\n");
  18.    
  19.     CreateObject(17065,2515.29736328,-1518.84741211,27.25344086,0.00000000,0.00000000,0.00000000); //object(cw2_garagecanopy) (1)
  20.     CreateObject(11547,2521.52343750,-1517.40087891,19.09667397,90.00000000,175.51147461,94.48846436); //object(desn_tscanopy) (1)
  21.     CreateObject(11547,2508.76708984,-1521.85034180,19.09667397,90.00000000,185.73046875,264.26416016); //object(desn_tscanopy) (2)
  22.     CreateObject(11547,2521.51318359,-1521.86315918,19.09667397,90.00000000,174.91491699,95.07952881); //object(desn_tscanopy) (3)
  23.     CreateObject(11547,2508.76953125,-1517.48657227,19.09667397,90.00000000,185.14331055,264.84570312); //object(desn_tscanopy) (4)
  24.     CreateObject(11547,2523.96362305,-1517.36169434,19.09667397,90.00000000,176.01452637,273.98010254); //object(desn_tscanopy) (5)
  25.     CreateObject(11547,2523.96362305,-1521.87902832,19.09667397,90.00000000,184.34509277,265.64392090); //object(desn_tscanopy) (6)
  26.     CreateObject(11547,2506.36352539,-1521.85034180,19.09667397,90.00000000,175.17248535,94.81652832); //object(desn_tscanopy) (7)
  27.     CreateObject(11547,2506.36352539,-1517.47119141,19.09667397,90.00000000,184.91088867,85.07263184); //object(desn_tscanopy) (8)
  28.     CreateObject(11547,2507.57226562,-1516.24572754,19.09667397,90.00000000,175.96154785,4.02194214); //object(desn_tscanopy) (10)
  29.     CreateObject(11547,2522.72924805,-1523.11047363,19.09667397,90.00000000,184.97680664,175.00122070); //object(desn_tscanopy) (11)
  30.     CreateObject(11547,2507.57226562,-1523.11047363,19.09667397,90.00000000,176.30859375,183.66949463); //object(desn_tscanopy) (12)
  31.     CreateObject(11547,2522.74145508,-1516.10571289,19.09667397,90.00000000,176.12896729,3.84902954); //object(desn_tscanopy) (13)
  32.     CreateObject(17950,2522.72851562,-1518.11767578,26.51049232,0.00000000,0.00000000,0.00000000); //object(cjsaveg) (1)
  33.     CreateObject(17950,2522.75415039,-1521.27551270,26.51049232,0.00000000,0.00000000,0.00000000); //object(cjsaveg) (2)
  34.     CreateObject(17950,2507.52294922,-1518.51660156,26.51049232,0.00000000,0.00000000,0.00000000); //object(cjsaveg) (3)
  35.     CreateObject(17950,2507.53247070,-1521.14941406,26.51049232,0.00000000,0.00000000,0.00000000); //object(cjsaveg) (4)
  36.     CreateObject(17950,2515.11059570,-1517.56921387,30.93548584,0.00000000,0.00000000,90.00000000); //object(cjsaveg) (5)
  37.     CreateObject(17950,2515.13208008,-1522.02697754,30.93548584,0.00000000,0.00000000,90.00000000); //object(cjsaveg) (6)
  38.     CreateObject(17950,2515.00781250,-1522.03662109,30.93548584,0.00000000,0.00000000,270.00000000); //object(cjsaveg) (7)
  39.     CreateObject(17950,2514.97534180,-1517.55969238,30.93548584,0.00000000,0.00000000,270.00000000); //object(cjsaveg) (8)
  40.     CreateObject(979,2507.12890625,-1513.29248047,23.84021950,0.00000000,0.00000000,0.00000000); //object(sub_roadleft) (1)
  41.     CreateObject(978,2523.20800781,-1513.15270996,23.84021950,0.00000000,0.00000000,0.00000000); //object(sub_roadright) (1)
  42.     CreateObject(962,2517.40283203,-1510.68273926,24.02499962,90.00000000,172.29339600,97.70660400); //object(cj_t_ticket_ped) (1)
  43.  
  44.     waschzu1 = CreateObject(980,2515.87011719,-1513.30871582,19.32339859,0.00000000,270.00000000,0.00000000); //Eingang
  45.     waschzu2 = CreateObject(980,2512.06665039,-1513.30871582,19.32339859,0.00000000,270.00000000,0.00000000); //Eingang
  46.     waschzu3 = CreateObject(980,2515.52880859,-1526.03283691,22.19840813,0.00000000,180.00000000,0.00000000); //Ausgang
  47.  
  48.     waschan1 = CreateObject(9833,2522.21069336,-1515.10961914,10.03066826,0.00000000,268.00000000,0.00000000); //object(fountain_sfw) (2)
  49.     waschan2 = CreateObject(9833,2508.29882812,-1514.95703125,10.20254326,0.00000000,267.99499512,180.00000000); //object(fountain_sfw) (3)
  50.     return 1;
  51. }
  52.  
  53. public OnFilterScriptExit()
  54. {
  55.     return 1;
  56. }
  57.  
  58.  
  59. public OnPlayerDisconnect(playerid, reason)
  60. {
  61.     return 1;
  62. }
  63.  
  64. public OnPlayerCommandText(playerid, cmdtext[])
  65. {
  66.     if (strcmp("/waschen", cmdtext, true, 10) == 0)
  67.     {
  68.     if(IsPlayerInRangeOfPoint(playerid,1.2,2515.3796,-1510.4592,24.0000))
  69.         {
  70.             MoveObject(waschzu1, 2515.87011719,-1513.30871582,17.02343369,4);
  71.             MoveObject(waschzu2, 2512.06665039,-1513.30871582,17.02343369,4);
  72.             SetTimer("Wasch",5000,false);
  73.         }
  74.     return 1;
  75. }
  76.     return 0;
  77. }
  78.  
  79. forward Wasch(playerid);
  80. public Wasch(playerid)
  81. {
  82.     if(GetPlayerMoney(playerid)<TICKETPREIS)
  83.             {
  84.                 SendClientMessage(playerid,MSG_COLOR,"Du hast nicht genug Geld");
  85.                 return 0;
  86.             }
  87.     MoveObject(waschzu1, 2515.87011719,-1513.30871582,19.32339859,4);
  88.     MoveObject(waschzu2, 2512.06665039,-1513.30871582,19.32339859,4);
  89.     TogglePlayerControllable(playerid, 0);
  90.     SetPlayerCameraPos(playerid,2515.0981,-1525.5679,23.6801);
  91.     SetPlayerCameraLookAt(playerid,2515.3979,-1513.7871,24.0000);
  92.     GivePlayerMoney(playerid,-TICKETPREIS);
  93.     SetTimer("Wasch2",3000,false);
  94.     return 1;
  95. }
  96.  
  97. forward Wasch2(playerid);
  98. public Wasch2(playerid)
  99. {
  100.     MoveObject(waschan1, 2522.21069336,-1515.10961914,26.03066826,5);
  101.     MoveObject(waschan2, 2508.29882812,-1514.95703125,26.20254326,5);
  102.     SetTimer("Wasch3",3000,false);
  103.     return 1;
  104. }
  105.  
  106. forward Wasch3(playerid);
  107. public Wasch3(playerid)
  108. {
  109.     MoveObject(waschan1, 2522.21069336,-1524.10961914,26.03066826,2);
  110.     MoveObject(waschan2, 2508.29882812,-1524.10961914,26.20254326,2);
  111.     SetTimer("Wasch4",3000,false);
  112.     return 1;
  113. }
  114.  
  115. forward Wasch4(playerid);
  116. public Wasch4(playerid)
  117. {
  118.     MoveObject(waschan1, 2522.21069336,-1515.10961914,26.03066826,2);
  119.     MoveObject(waschan2, 2508.29882812,-1514.95703125,26.20254326,2);
  120.     SetTimer("Wasch5",3000,false);
  121.     return 1;
  122. }
  123.  
  124. forward Wasch5(playerid);
  125. public Wasch5(playerid)
  126. {
  127.     MoveObject(waschan1, 2522.21069336,-1515.10961914,10.03066826,10);
  128.     MoveObject(waschan2, 2508.29882812,-1514.95703125,10.20254326,10);
  129.     new vehicleid = GetPlayerVehicleID(playerid);
  130.     SetVehicleHealth(vehicleid,1000.0);
  131.     RepairVehicle(GetPlayerVehicleID(playerid));
  132.     TogglePlayerControllable(playerid, 1);
  133.     SetCameraBehindPlayer(playerid);
  134.     SetTimer("Wasch6",1000,false);
  135.     return 1;
  136. }
  137.  
  138. forward Wasch6(playerid);
  139. public Wasch6(playerid)
  140. {
  141.     MoveObject(waschzu3, 2515.52880859,-1526.03283691,10.19840813,5);
  142.     SetTimer("Wasch7",4000,false);
  143.     return 1;
  144. }
  145.  
  146. forward Wasch7(playerid);
  147. public Wasch7(playerid)
  148. {
  149.     MoveObject(waschzu3, 2515.52880859,-1526.03283691,22.19840813,5);
  150.     return 1;
  151. }
Advertisement
Add Comment
Please, Sign In to add comment