Problem with truck delivery postion ?
#1

Okay, i found this :
PHP код:
if (PlayerData[playerid][pLoadCrate])
        {
            for (new 
1!= MAX_VEHICLES++) if (IsPlayerNearBoot(playeridi))
            {
                if (!
IsLoadableVehicle(i))
                    return 
SendErrorMessage(playerid"You can't load crates into this vehicle.");
                if (
CoreVehicles[i][vehLoadType] != && CoreVehicles[i][vehLoadType] != PlayerData[playerid][pLoadType])
                    return 
SendErrorMessage(playerid"This vehicle is already loaded with something else.");
                if (
CoreVehicles[i][vehLoads] >= 6)
                    return 
SendErrorMessage(playerid"This vehicle can only hold up to 6 crates.");
                
CoreVehicles[i][vehLoads]++;
                
CoreVehicles[i][vehLoadType] = PlayerData[playerid][pLoadType];
                
ApplyAnimation(playerid"CARRY""putdwn"4.000000);
                
SendNearbyMessage(playerid30.0COLOR_PURPLE"** %s drops a crate into the back of the %s."ReturnName(playerid0), ReturnVehicleName(i));
                if (
CoreVehicles[i][vehLoads] == 6)
                {
                    
DisablePlayerCheckpoint(playerid);
                    if (
PlayerData[playerid][pShipment] != -1)
                    {
                        
PlayerData[playerid][pDeliverShipment] = 1;
                        
SendServerMessage(playerid"You have loaded all the crates. Type /unload at the marker.");
                        
SetPlayerCheckpoint(playeridBusinessData[PlayerData[playerid][pShipment]][bizDeliver][0], BusinessData[PlayerData[playerid][pShipment]][bizDeliver][1], BusinessData[PlayerData[playerid][pShipment]][bizDeliver][2], 3.0);
                    }
                    else switch (
PlayerData[playerid][pLoadType])
                    {
                        case 
1SendServerMessage(playerid"You have loaded all the crates. Type /unload at any retail store.");
                        case 
2SendServerMessage(playerid"You have loaded all the crates. Type /unload at any weapon store.");
                        case 
3SendServerMessage(playerid"You have loaded all the crates. Type /unload at any clothing store.");
                        case 
4SendServerMessage(playerid"You have loaded all the crates. Type /unload at any fast food store.");
                        case 
5SendServerMessage(playerid"You have loaded all the crates. Type /unload at any gas station.");
                        case 
6SendServerMessage(playerid"You have loaded all the crates. Type /unload at any furniture store.");
                    }
                    
PlayerData[playerid][pLoading] = 0;
                    
PlayerData[playerid][pLoadType] = 0;
                }
                
PlayerData[playerid][pLoadCrate] = 0;
                
RemovePlayerAttachedObject(playerid4);
                
SetPlayerSpecialAction(playeridSPECIAL_ACTION_NONE);
                return 
1;
            }
        } 
I think this code will set up the checkpoint for truck but after try to change pos in table I still can't get a checkpoint after delivery all crates to the vehicle . Any help? Please!
P/S: sorry about bad English
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)