Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && EsteMasinaJOB(GetPlayerVehicleID(playerid)))
- {
- if(PasJob[playerid] == 2 && IsPlayerInRangeOfPoint(playerid, 5, -233.0633,-1218.7089,6.5594))
- {
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, 0xFFFFFFAA, "Parcheaza Masina in lateral.");
- SetPlayerCheckpoint(playerid, -242.7653,-1198.1378,7.4173, 5);
- PasJob[playerid] = 3;
- }
- else if(PasJob[playerid] == 3 && IsPlayerInRangeOfPoint(playerid, 5, -242.7653,-1198.1378,7.4173))
- {
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, 0xFFFFFFAA, "Coboara din vehicul si dute la copacii pentru ai taia.");
- SetPlayerCheckpoint(playerid, -253.6463,-1220.2349,6.1858, 1.0);
- PasJob[playerid] = 4;
- }
- else if(PasJob[playerid] == 12 && IsPlayerInRangeOfPoint(playerid, 5, -380.8114,-1426.4735,25.7750))
- {
- new vehid;
- vehid = GetPlayerVehicleID(playerid);
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid, 0xFFFFFFAA, "Ai terminat slujba , ai primit : $100.000");
- GivePlayerMoney(playerid, 100000);
- DestroyPlayerObject(playerid, objjob[playerid]);
- SetVehicleToRespawn(vehid);
- SetPlayerSkin(playerid, 20);
- PasJob[playerid] = 0;
- masina[playerid] = 0;
- }
- }
- else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- if(PasJob[playerid] == 4 && IsPlayerInRangeOfPoint(playerid, 1, -253.6463,-1220.2349,6.1858))
- {
- DisablePlayerCheckpoint(playerid);
- TogglePlayerControllable(playerid, 0);
- timecut[playerid] = SetTimerEx("timpjob",5000,false,"i", playerid);
- }
- else if(PasJob[playerid] == 5 && IsPlayerInRangeOfPoint(playerid, 2, -103.7549, -1546.4635, 2.6107))
- {
- DisablePlayerCheckpoint(playerid);
- if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
- SendClientMessage(playerid, 0xFFFFFFAA, "Du-te acum la alt copac si taie-l.");
- SetPlayerCheckpoint(playerid, -245.1579,-1211.6552,6.7876, 1.0);
- PasJob[playerid] = 6;
- }
- else if(PasJob[playerid] == 6 && IsPlayerInRangeOfPoint(playerid, 1, -245.1579,-1211.6552,6.7876))
- {
- DisablePlayerCheckpoint(playerid);
- TogglePlayerControllable(playerid, 0);
- timecut[playerid] = SetTimerEx("timpjob",5000,false,"i", playerid);
- }
- else if(PasJob[playerid] == 7 && IsPlayerInRangeOfPoint(playerid, 2, -103.7549, -1546.4635, 2.6107))
- {
- DisablePlayerCheckpoint(playerid);
- if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
- SetPlayerCheckpoint(playerid, -245.1579,-1211.6552,6.7876, 1.0);
- PasJob[playerid] = 8;
- }
- else if(PasJob[playerid] == 8 && IsPlayerInRangeOfPoint(playerid, 1, -245.1579,-1211.6552,6.7876))
- {
- DisablePlayerCheckpoint(playerid);
- TogglePlayerControllable(playerid, 0);
- timecut[playerid] = SetTimerEx("timpjob",5000,false,"i", playerid);
- }
- else if(PasJob[playerid] == 9 && IsPlayerInRangeOfPoint(playerid, 2, -103.7549, -1546.4635, 2.6107))
- {
- DisablePlayerCheckpoint(playerid);
- if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
- SetPlayerCheckpoint(playerid, -255.9491,-1219.1299,6.5362, 1.0);
- PasJob[playerid] = 10;
- }
- else if(PasJob[playerid] == 10 && IsPlayerInRangeOfPoint(playerid, 1, -255.9491,-1219.1299,6.5362))
- {
- DisablePlayerCheckpoint(playerid);
- TogglePlayerControllable(playerid, 0);
- timecut[playerid] = SetTimerEx("timpjob",5000,false,"i", playerid);
- }
- else if(PasJob[playerid] == 11 && IsPlayerInRangeOfPoint(playerid, 2, -103.7549, -1546.4635, 2.6107))
- {
- DisablePlayerCheckpoint(playerid);
- if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
- objjob[playerid] = CreatePlayerObject(playerid, 18609, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 300.0);
- AttachPlayerObjectToVehicle(playerid, objjob[playerid], masina[playerid], -0.06195, -4.93747, 0.73480, 0.00000, 0.00000, 5.00000);
- SendClientMessage(playerid, 0xFFFFFFAA, "Ai Adunat Lemnele necesare , urca in vehicul si dute sa duci lemnele la depozit.");
- SetPlayerCheckpoint(playerid, -380.8114,-1426.4735,25.7750, 5);
- PasJob[playerid] = 12;
- }
- }
- return 1;
- }
- public timpjob(playerid)
- {
- if(PasJob[playerid] == 4)
- {
- TogglePlayerControllable(playerid, 1);
- SetPlayerAttachedObject(playerid, 1, 1463, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
- SetPlayerCheckpoint(playerid,-245.1016,-1198.7922,7.1984,2.0);
- PasJob[playerid] = 5;
- SendClientMessage(playerid, 0xFFFFFFAA, "Du-te si incarca lemnele in masina.");
- }
- if(PasJob[playerid] == 6)
- {
- TogglePlayerControllable(playerid, 1);
- SetPlayerAttachedObject(playerid, 1, 1463, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
- SetPlayerCheckpoint(playerid,-245.1016,-1198.7922,7.1984,2.0);
- PasJob[playerid] = 7;
- }
- if(PasJob[playerid] == 8)
- {
- TogglePlayerControllable(playerid, 1);
- SetPlayerAttachedObject(playerid, 1, 1463, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
- SetPlayerCheckpoint(playerid,-245.1016,-1198.7922,7.1984,2.0);
- PasJob[playerid] = 9;
- }
- if(PasJob[playerid] == 10)
- {
- TogglePlayerControllable(playerid, 1);
- SetPlayerAttachedObject(playerid, 1, 1463, 1,0.20,0.36,0.0,0.0,90.0, 0.0, 0.4, 0.3, 0.6);
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
- SetPlayerCheckpoint(playerid,-245.1016,-1198.7922,7.1984,2.0);
- PasJob[playerid] = 11;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement