Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define TICKETPREIS 50
- #define MSG_COLOR 0xBBBBBBFF
- new waschan1;
- new waschan2;
- new waschzu1;
- new waschzu2;
- new waschzu3;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Alpas Waschanlage");
- print("--------------------------------------\n");
- CreateObject(17065,2515.29736328,-1518.84741211,27.25344086,0.00000000,0.00000000,0.00000000); //object(cw2_garagecanopy) (1)
- CreateObject(11547,2521.52343750,-1517.40087891,19.09667397,90.00000000,175.51147461,94.48846436); //object(desn_tscanopy) (1)
- CreateObject(11547,2508.76708984,-1521.85034180,19.09667397,90.00000000,185.73046875,264.26416016); //object(desn_tscanopy) (2)
- CreateObject(11547,2521.51318359,-1521.86315918,19.09667397,90.00000000,174.91491699,95.07952881); //object(desn_tscanopy) (3)
- CreateObject(11547,2508.76953125,-1517.48657227,19.09667397,90.00000000,185.14331055,264.84570312); //object(desn_tscanopy) (4)
- CreateObject(11547,2523.96362305,-1517.36169434,19.09667397,90.00000000,176.01452637,273.98010254); //object(desn_tscanopy) (5)
- CreateObject(11547,2523.96362305,-1521.87902832,19.09667397,90.00000000,184.34509277,265.64392090); //object(desn_tscanopy) (6)
- CreateObject(11547,2506.36352539,-1521.85034180,19.09667397,90.00000000,175.17248535,94.81652832); //object(desn_tscanopy) (7)
- CreateObject(11547,2506.36352539,-1517.47119141,19.09667397,90.00000000,184.91088867,85.07263184); //object(desn_tscanopy) (8)
- CreateObject(11547,2507.57226562,-1516.24572754,19.09667397,90.00000000,175.96154785,4.02194214); //object(desn_tscanopy) (10)
- CreateObject(11547,2522.72924805,-1523.11047363,19.09667397,90.00000000,184.97680664,175.00122070); //object(desn_tscanopy) (11)
- CreateObject(11547,2507.57226562,-1523.11047363,19.09667397,90.00000000,176.30859375,183.66949463); //object(desn_tscanopy) (12)
- CreateObject(11547,2522.74145508,-1516.10571289,19.09667397,90.00000000,176.12896729,3.84902954); //object(desn_tscanopy) (13)
- CreateObject(17950,2522.72851562,-1518.11767578,26.51049232,0.00000000,0.00000000,0.00000000); //object(cjsaveg) (1)
- CreateObject(17950,2522.75415039,-1521.27551270,26.51049232,0.00000000,0.00000000,0.00000000); //object(cjsaveg) (2)
- CreateObject(17950,2507.52294922,-1518.51660156,26.51049232,0.00000000,0.00000000,0.00000000); //object(cjsaveg) (3)
- CreateObject(17950,2507.53247070,-1521.14941406,26.51049232,0.00000000,0.00000000,0.00000000); //object(cjsaveg) (4)
- CreateObject(17950,2515.11059570,-1517.56921387,30.93548584,0.00000000,0.00000000,90.00000000); //object(cjsaveg) (5)
- CreateObject(17950,2515.13208008,-1522.02697754,30.93548584,0.00000000,0.00000000,90.00000000); //object(cjsaveg) (6)
- CreateObject(17950,2515.00781250,-1522.03662109,30.93548584,0.00000000,0.00000000,270.00000000); //object(cjsaveg) (7)
- CreateObject(17950,2514.97534180,-1517.55969238,30.93548584,0.00000000,0.00000000,270.00000000); //object(cjsaveg) (8)
- CreateObject(979,2507.12890625,-1513.29248047,23.84021950,0.00000000,0.00000000,0.00000000); //object(sub_roadleft) (1)
- CreateObject(978,2523.20800781,-1513.15270996,23.84021950,0.00000000,0.00000000,0.00000000); //object(sub_roadright) (1)
- CreateObject(962,2517.40283203,-1510.68273926,24.02499962,90.00000000,172.29339600,97.70660400); //object(cj_t_ticket_ped) (1)
- waschzu1 = CreateObject(980,2515.87011719,-1513.30871582,19.32339859,0.00000000,270.00000000,0.00000000); //Eingang
- waschzu2 = CreateObject(980,2512.06665039,-1513.30871582,19.32339859,0.00000000,270.00000000,0.00000000); //Eingang
- waschzu3 = CreateObject(980,2515.52880859,-1526.03283691,22.19840813,0.00000000,180.00000000,0.00000000); //Ausgang
- waschan1 = CreateObject(9833,2522.21069336,-1515.10961914,10.03066826,0.00000000,268.00000000,0.00000000); //object(fountain_sfw) (2)
- waschan2 = CreateObject(9833,2508.29882812,-1514.95703125,10.20254326,0.00000000,267.99499512,180.00000000); //object(fountain_sfw) (3)
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/waschen", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid,1.2,2515.3796,-1510.4592,24.0000))
- {
- MoveObject(waschzu1, 2515.87011719,-1513.30871582,17.02343369,4);
- MoveObject(waschzu2, 2512.06665039,-1513.30871582,17.02343369,4);
- SetTimer("Wasch",5000,false);
- }
- return 1;
- }
- return 0;
- }
- forward Wasch(playerid);
- public Wasch(playerid)
- {
- if(GetPlayerMoney(playerid)<TICKETPREIS)
- {
- SendClientMessage(playerid,MSG_COLOR,"Du hast nicht genug Geld");
- return 0;
- }
- MoveObject(waschzu1, 2515.87011719,-1513.30871582,19.32339859,4);
- MoveObject(waschzu2, 2512.06665039,-1513.30871582,19.32339859,4);
- TogglePlayerControllable(playerid, 0);
- SetPlayerCameraPos(playerid,2515.0981,-1525.5679,23.6801);
- SetPlayerCameraLookAt(playerid,2515.3979,-1513.7871,24.0000);
- GivePlayerMoney(playerid,-TICKETPREIS);
- SetTimer("Wasch2",3000,false);
- return 1;
- }
- forward Wasch2(playerid);
- public Wasch2(playerid)
- {
- MoveObject(waschan1, 2522.21069336,-1515.10961914,26.03066826,5);
- MoveObject(waschan2, 2508.29882812,-1514.95703125,26.20254326,5);
- SetTimer("Wasch3",3000,false);
- return 1;
- }
- forward Wasch3(playerid);
- public Wasch3(playerid)
- {
- MoveObject(waschan1, 2522.21069336,-1524.10961914,26.03066826,2);
- MoveObject(waschan2, 2508.29882812,-1524.10961914,26.20254326,2);
- SetTimer("Wasch4",3000,false);
- return 1;
- }
- forward Wasch4(playerid);
- public Wasch4(playerid)
- {
- MoveObject(waschan1, 2522.21069336,-1515.10961914,26.03066826,2);
- MoveObject(waschan2, 2508.29882812,-1514.95703125,26.20254326,2);
- SetTimer("Wasch5",3000,false);
- return 1;
- }
- forward Wasch5(playerid);
- public Wasch5(playerid)
- {
- MoveObject(waschan1, 2522.21069336,-1515.10961914,10.03066826,10);
- MoveObject(waschan2, 2508.29882812,-1514.95703125,10.20254326,10);
- new vehicleid = GetPlayerVehicleID(playerid);
- SetVehicleHealth(vehicleid,1000.0);
- RepairVehicle(GetPlayerVehicleID(playerid));
- TogglePlayerControllable(playerid, 1);
- SetCameraBehindPlayer(playerid);
- SetTimer("Wasch6",1000,false);
- return 1;
- }
- forward Wasch6(playerid);
- public Wasch6(playerid)
- {
- MoveObject(waschzu3, 2515.52880859,-1526.03283691,10.19840813,5);
- SetTimer("Wasch7",4000,false);
- return 1;
- }
- forward Wasch7(playerid);
- public Wasch7(playerid)
- {
- MoveObject(waschzu3, 2515.52880859,-1526.03283691,22.19840813,5);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment