Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 120:
- {
- if(IsPlayerInCheckpointEx(playerid, cpid))
- {
- VerificaSecundeCheckpoint(playerid);
- JobInterval[playerid] = GetTickCount();
- if(JobStage[playerid] == 1)
- {
- JobStage[playerid] = 2;
- new Float: X[4];
- GetPlayerPos(playerid, X[0], X[1],X[2]);
- new string[256];
- SetPlayerCheckpointEx(playerid, 120, 2178.8142,-2255.2375,14.7734, 8);
- return 1;
- }
- if(JobStage[playerid] == 2)
- {
- PayJob(playerid, 2);
- new string[256];
- JobStage[playerid] = 1;
- SetPlayerCheckpointEx(playerid, 120, 2188.8704,-2225.4451,15.1711, 8);
- return 1;
- }
- }
- }
- case 100: //la asta, 1
- {
- if(IsPlayerInCheckpointEx(playerid, cpid) && GetPlayerVehicleID(playerid) == MasinaJob[playerid])
- {
- VerificaSecundeCheckpoint(playerid);
- JobInterval[playerid] = GetTickCount();
- if(JobStage[playerid] == 1)
- {
- Gas[MasinaJob[playerid]] = 100;
- JobStage[playerid] = 2;
- new Float: X[4];
- GetPlayerPos(playerid, X[0], X[1],X[2]);
- new string[256];
- SetPlayerCheckpointEx(playerid, 100, 1887.1255,-2493.8069,13.5391, 8);
- return 1;
- }
- if(JobStage[playerid] == 2)
- {
- PayJob(playerid, 2);
- new string[256];
- Gas[MasinaJob[playerid]] = 100;
- JobStage[playerid] = 1;
- SetPlayerCheckpointEx(playerid, 100, -1345.8219,146.5918,14.1484, 8);
- return 1;
- }
- }
- }
- case 41: //asta merge, celelalte sunt facute dupa modelul asta, cu mici modificari
- {
- if(IsPlayerInCheckpointEx(playerid, cpid) && GetPlayerVehicleID(playerid) == MasinaJob[playerid])
- {
- VerificaSecundeCheckpoint(playerid);
- JobInterval[playerid] = GetTickCount();
- if(JobStage[playerid] == 1)
- {
- Gas[MasinaJob[playerid]] = 100;
- JobStage[playerid] = 2;
- new Float: X[4];
- GetPlayerPos(playerid, X[0], X[1],X[2]);
- TrailerJob[playerid] = CreateVehicle(426, X[0],X[1],X[2],0, -1, -1 , 99999);
- SetTimerEx("AttachTrailer", 100, false, "i", playerid);
- SetVehicleParamsVeh(TrailerJob[playerid], 0, lights, alarm,1, bonnet, boot, objective);
- new string[256];
- PlayerTextDrawSetString(playerid, JobHint[playerid], string);
- SetPlayerCheckpointEx(playerid, 41, 2528.3462,-1941.2601,13.5391, 8);
- return 1;
- }
- if(JobStage[playerid] == 2)
- {
- PayJob(playerid, 2);
- if(TrailerJob[playerid])
- {
- DestroyVehicle(TrailerJob[playerid]);
- TrailerJob[playerid] = 0;
- }
- new string[256];
- Gas[MasinaJob[playerid]] = 100;
- JobStage[playerid] = 1;
- SetPlayerCheckpointEx(playerid, 41, 2527.4663,-881.8802,88.0752, 8);
- return 1;
- }
- }
- }
- Jobs
- if(job == 2) // asta e cu case 41
- {
- if (PlayerToPoint(3.0, playerid,2489.1348,-1957.4084,13.5925) && myjob == 2)
- {
- if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_FADE1, "Nu poti incepe munca dintr-un vehicul!");
- if(statusSlujba2 == 0) return SCM(playerid,COLOR_FADE1,"{9999ff}[Probleme Tehnice]: Din pacate acest job este in mentenanta tehnica!");
- IsWorking[playerid] = 1;
- MasinaJob[playerid] = CreateVehicle(525,2530.9448,-1946.3097,13.4243,0.3858, 5,5, 99999);
- PutPlayerInVehicle(playerid, MasinaJob[playerid], 0);
- DisableRemoteVehicleCollisions(playerid, 0);
- SetVehicleParamsVeh(MasinaJob[playerid], 0, lights, alarm,1, bonnet, boot, objective);
- Gas[MasinaJob[playerid]] = 100;
- JobStage[playerid] = 1;
- SetPlayerCheckpointEx(playerid, 41, 2527.4663,-881.8802,88.0752, 8);
- JobInterval[playerid] = GetTickCount();
- return 1;
- }
- if(job == 9) //case 100
- {
- if (PlayerToPoint(3.0, playerid,1891.9258,-2328.5146,13.5469) && myjob == 9)
- {
- if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_FADE1, "Nu poti incepe munca dintr-un vehicul!");
- if(statusSlujba9 == 0) return SCM(playerid,COLOR_FADE1,"{9999ff}[Probleme Tehnice]: Din pacate acest job este in mentenanta tehnica!");
- IsWorking[playerid] = 1;
- format(string, sizeof(string), "Du-te in San Fierro!");
- PlayerTextDrawSetString(playerid, JobHint[playerid], string);
- PlayerTextDrawShow(playerid, JobHint[playerid]);
- MasinaJob[playerid] = CreateVehicle(411,1887.1255,-2493.8069,13.5391,92.2980, 1,1, 99999); //551
- PutPlayerInVehicle(playerid, MasinaJob[playerid], 0);
- DisableRemoteVehicleCollisions(playerid, 0);
- SetVehicleParamsVeh(MasinaJob[playerid], 0, lights, alarm,1, bonnet, boot, objective);
- Gas[MasinaJob[playerid]] = 100;
- JobStage[playerid] = 1;
- pCPID[playerid] = 100;
- SetPlayerCheckpointEx(playerid, 100, -1345.8219,146.5918,14.1484, 8);
- SCM(playerid, COLOR_LIGHTRED, "{FF784E}[JOB]: Ai inceput munca, du-te pe aeroport SF.");
- SCM(playerid, COLOR_LIGHTRED, "{FF784E}[JOB]: (/stopwork) - atunci cand doresti sa te opresti din munca.");
- JobInterval[playerid] = GetTickCount();
- return 1;
- }
- else return SCM(playerid, COLOR_FADE1,"Tasteaza /locatework pentru a gasi locatia de unde poti incepe munca.");
- }
- if(job == 10) //case 120
- {
- if (PlayerToPoint(3.0, playerid,2178.8142,-2255.2375,14.7734) && myjob == 10)
- {
- if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_FADE1, "Nu poti incepe munca dintr-un vehicul!");
- IsWorking[playerid] = 1;
- pCPID[playerid] = 120;
- format(string, sizeof(string), "Descarca camionul.");
- PlayerTextDrawSetString(playerid, JobHint[playerid], string);
- PlayerTextDrawShow(playerid, JobHint[playerid]);
- JobStage[playerid] = 1;
- SetPlayerCheckpointEx(playerid, 120, 2188.8704,-2225.4451,15.1711, 8);
- JobInterval[playerid] = GetTickCount();
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement