Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new h = 0; h < sizeof(DynamicCars); h++)
- {
- if(DynamicCars[veh][CarType] == 69)
- {
- if(TakingDrivingTest[playerid] == 1)
- {
- if(PlayerToPoint(5.0,playerid,1210.4828,-1841.8555,13.3828) && DrivingTestStep[playerid] == 1)
- {
- DrivingTestStep[playerid] = 2;
- SetPlayerCheckpoint(playerid, 1179.7932,-1718.5259,13.5700, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1179.7932,-1718.5259,13.5700) && DrivingTestStep[playerid] == 2)
- {
- DrivingTestStep[playerid] = 3;
- SetPlayerCheckpoint(playerid, 1048.8259,-1709.8258,13.3828, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1048.8259,-1709.8258,13.3828) && DrivingTestStep[playerid] == 3)
- {
- DrivingTestStep[playerid] = 4;
- SetPlayerCheckpoint(playerid, 1030.9001,-1791.4723,13.7039, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1030.9001,-1791.4723,13.7039) && DrivingTestStep[playerid] == 4)
- {
- DrivingTestStep[playerid] = 5;
- SetPlayerCheckpoint(playerid, 876.9290,-1768.1295,13.3828, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,876.9290,-1768.1295,13.3828) && DrivingTestStep[playerid] == 5)
- {
- DrivingTestStep[playerid] = 6;
- SetPlayerCheckpoint(playerid, 636.0714,-1725.2800,13.9202, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,636.0714,-1725.2800,13.9202) && DrivingTestStep[playerid] == 6)
- {
- DrivingTestStep[playerid] = 7;
- SetPlayerCheckpoint(playerid, 640.0871,-1528.6864,15.0002, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,640.0871,-1528.6864,15.0002) && DrivingTestStep[playerid] == 7)
- {
- DrivingTestStep[playerid] = 8;
- SetPlayerCheckpoint(playerid, 639.6245,-1413.1931,13.4582, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,639.6245,-1413.1931,13.4582) && DrivingTestStep[playerid] == 8)
- {
- DrivingTestStep[playerid] = 9;
- SetPlayerCheckpoint(playerid, 792.8707,-1411.4475,13.3976, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,792.8707,-1411.4475,13.3976) && DrivingTestStep[playerid] == 9)
- {
- DrivingTestStep[playerid] = 10;
- SetPlayerCheckpoint(playerid, 769.1151,-1576.3108,13.3867, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,769.1151,-1576.3108,13.3867) && DrivingTestStep[playerid] == 10)
- {
- DrivingTestStep[playerid] = 11;
- SetPlayerCheckpoint(playerid, 825.0438,-1605.5065,13.3828, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,825.0438,-1605.5065,13.3828) && DrivingTestStep[playerid] == 11)
- {
- DrivingTestStep[playerid] = 12;
- SetPlayerCheckpoint(playerid, 858.5005,-1596.6033,13.3906, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,858.5005,-1596.6033,13.3906) && DrivingTestStep[playerid] == 12)
- {
- DrivingTestStep[playerid] = 13;
- SetPlayerCheckpoint(playerid, 948.2869,-1574.6379,13.3828, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,948.2869,-1574.6379,13.3828) && DrivingTestStep[playerid] == 13)
- {
- DrivingTestStep[playerid] = 14;
- SetPlayerCheckpoint(playerid, 1033.9424,-1702.3530,13.3906, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1033.9424,-1702.3530,13.3906) && DrivingTestStep[playerid] == 14)
- {
- DrivingTestStep[playerid] = 15;
- SetPlayerCheckpoint(playerid, 1070.5059,-1714.9296,13.3828, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1070.5059,-1714.9296,13.3828) && DrivingTestStep[playerid] == 15)
- {
- DrivingTestStep[playerid] = 16;
- SetPlayerCheckpoint(playerid, 1171.3979,-1718.9802,13.6808, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1171.3979,-1718.9802,13.6808) && DrivingTestStep[playerid] == 16)
- {
- DrivingTestStep[playerid] = 17;
- SetPlayerCheckpoint(playerid, 1173.2983,-1841.9572,13.4079, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1173.2983,-1841.9572,13.4079) && DrivingTestStep[playerid] == 17)
- {
- DrivingTestStep[playerid] = 18;
- SetPlayerCheckpoint(playerid, 1264.3164,-1852.0735,13.3828, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1264.3164,-1852.0735,13.3828) && DrivingTestStep[playerid] == 18)
- {
- DrivingTestStep[playerid] = 19;
- SetPlayerCheckpoint(playerid, 1223.6658,-1826.8866,13.4099, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1223.6658,-1826.8866,13.4099) && DrivingTestStep[playerid] == 19)
- {
- DrivingTestStep[playerid] = 20;
- SetPlayerCheckpoint(playerid, 1223.6658,-1826.8866,13.4099, 5.0);
- }
- else if(PlayerToPoint(5.0,playerid,1223.6658,-1826.8866,13.4099) && DrivingTestStep[playerid] == 20)
- {
- new Float:health;
- veh = GetPlayerVehicleID(playerid);
- GetVehicleHealth(veh, health);
- if(health >= 950.0)
- {
- GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
- if(engine == VEHICLE_PARAMS_ON) { SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); }
- SendClientMessage(playerid, COLOR_GREEN, "Felicitari! Ai trecut testul. Acum ai o licenta valida pentru condus. Ai fost taxat cu 50$.");
- GameTextForPlayer(playerid, "~g~Trecut", 3000, 1);
- PlayerInfo[playerid][pCarLic] = 1;
- EngineStatus[veh] = 0;
- SetVehicleToRespawn(veh);
- EngineStatus[veh] = 0;
- TakingDrivingTest[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- ActiveCP[playerid] = 0;
- GivePlayerCash(playerid,-50);
- GivePlayerCash(playerid,-Businesses[12][EntranceCost]);
- Businesses[12][Till] += Businesses[12][EntranceCost];
- }
- else
- {
- GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
- if(engine == VEHICLE_PARAMS_ON) { SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); }
- SendClientMessage(playerid, COLOR_LIGHTRED, "Ne pare rau dar nu ai trecut testul. Incearca data viitoare");
- SendClientMessage(playerid, COLOR_LIGHTRED, "Ai fost taxat cu 100$ pentru examen si reparatiile masinii.");
- GameTextForPlayer(playerid, "~r~Esuare", 3000, 1);
- EngineStatus[veh] = 0;
- SetVehicleToRespawn(veh);
- EngineStatus[veh] = 0;
- TakingDrivingTest[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- ActiveCP[playerid] = 0;
- GivePlayerCash(playerid,-100);
- Businesses[12][Till] += 50;
- }
- DrivingTestStep[playerid] = 0;
- ActiveCP[playerid] = 0;
- DMVTest[playerid] = 0;
- }
- return 1;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment