02.03.2018, 12:12 
	
	
	PHP код:
if ((newkeys==KEY_YES))
    {    
        if(IsWorking[playerid] == 1 && PlayerData[playerid][Job] == 3) {
            new car = GetClosestVehicle(playerid);
            if(!IsPlayerNearVehicle(playerid, car, 10) && !IsABoat(car)) return 1;                        
            if(VJob[playerid] != car) return SCM(playerid, COLOR_WHITE, ""COLOR_JOB_EMBED"(Job)"COLOR_WHITE_EMBED" You are not near the garbage truck.");
            if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_WHITE, ""COLOR_JOB_EMBED"(Job)"COLOR_WHITE_EMBED" You can`t pick up the rubbish if you are in the car.");
            if(!PlayerToPoint(15.0, playerid, GunoiSet[playerid][0], GunoiSet[playerid][1], GunoiSet[playerid][2])) return SCM(playerid, COLOR_WHITE, ""COLOR_JOB_EMBED"(Job)"COLOR_WHITE_EMBED" You are not near the garbage bin");
            TickGarbage[playerid] = gettime();
            if(IsCarrying[playerid] == 0)
            {
                DisablePlayerCheckpoint(playerid);
                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 );
                IsCarrying[playerid] = 1;
                SCM(playerid, COLOR_WHITE, ""COLOR_JOB_EMBED"(Job)"COLOR_WHITE_EMBED" Throw the rubbish into the back of the garbage truck");
            }
            if(IsCarrying[playerid] == 1)
            {
                if(gettime() - TickGarbage[playerid] <3) return 0;     
                IsCarrying[playerid] = 0;
                SetPlayerSpecialAction(playerid, 0);
                RemovePlayerAttachedObject(playerid, 6);
                new randn = random(sizeof(GarbageCP));
                SetPlayerCheckpoint(playerid, GarbageCP[randn][0], GarbageCP[randn][1], GarbageCP[randn][2], 4.0);
                SetCoordGunoi(playerid, GarbageCP[randn][0], GarbageCP[randn][1], GarbageCP[randn][2]);
                SCM(playerid, COLOR_WHITE, "Go to next CP");
                new Float:coord[3];
                GetPlayerPos(playerid, coord[0], coord[1], coord[2]);
                SetDestination(playerid, coord[0], coord[1], coord[2]);
                PGarbageCP[playerid] += 1;
                UpdateJobBox(playerid);
            }
            
            
        }
    } 
i debugged all the coordinates and i am where i should be..


