PutPlayerInVehicle error?
#1

It NPC is out of order if I put it into a vehicle. Floats above the vehicle, does not sit down in it.

Code:
pawn Код:
gNPCVehicleID = CreateVehicle(411, 2109.1763, 1503.0453, 32.2887, 82.2873, 665, 665, 60);
PutPlayerInVehicle(gNPCID, gNPCVehicleID, 0);
PS: Not good, if I rehearse it later
Reply
#2

Is the recording a vehicle NPC recording? If it isn't, they won't be able to sit in a vehicle. See this page for recording types:

https://sampwiki.blast.hk/wiki/StartRecordingPlayerData
Reply
#3

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Is the recording a vehicle NPC recording?
Yes.

But this is not the problem. Accommodation after the vehicle starts to play.

(****** translate = shit)
Reply
#4

How are you aquiring the ID of the NPC?
Reply
#5

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
How are you aquiring the ID of the NPC?
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(IsPlayerNPC(playerid)) {
        new name[20];
        GetPlayerName(playerid,name,20);
        if(!strcmp(name,"[NPC]Name",true)) {
            gNPCID = playerid;

            SetSpawnInfo(gNPCID,69,23,380.8346,-1799.0687,7.8281,273.1935,-1,-1,-1,-1,-1,-1);

            return 1;
        }
    }
    return 1;
}
Reply
#6

pawn Код:
CMD:a(playerid){
    if(!IsPlayerConnected(0)) SendClientMessage(playerid, SAMPAGE_COLOR, "NPC offline");
    PutPlayerInVehicle(0, gNPCVehicleID, 0);
    PutPlayerInVehicle(playerid, gNPCVehicleID, 1);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)