Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(JobWorking[playerid] == 1 && PlayerInfo[playerid][pJob] == 12) {
- new car = GetClosestVehicle(playerid);
- if(!IsPlayerNearVehicle(playerid, car, 5) && !IsABoat(car)) return 1;
- else if(!IsPlayerNearVehicle(playerid, car, 10) && IsABoat(car)) return 1;
- if(GetPVarInt(playerid, "InHand") == 1) return 1;
- if(JobVehicle[playerid] != car) return SCM(playerid, COLOR_WHITE, "{008080}Eroare: {FFFFFF}Nu esti in spatele vehiculului tau de la job!");
- if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_WHITE, "{008080}Eroare: {FFFFFF}Nu poti ridica cutia cu inghetata dintr-un vehicul!");
- if(!PlayerToPoint(15.0, playerid, CheckpointPos[playerid][0], CheckpointPos[playerid][1], CheckpointPos[playerid][2])) return SCM(playerid, COLOR_WHITE, "{008080}Eroare: {FFFFFF}Nu poti ridica coletul deoarece nu esti aproape de destinatie!");
- ClearAnimations(playerid);
- SetPVarInt(playerid, "InHand", 1);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
- SetPlayerAttachedObject(playerid, 6, 1220, 1, 0.299822, 0.663485, -0.036337, 184.311355, 90.004089, 0.000000, 1.000000, 1.000000, 1.000000 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement