No driver bug while putting player directly from RC vehicle to normal vehicle.
#1

If you spawn an RC vehicle, eg. ID 465, then you directly put the player to a "normal" vehicle, you're staying on foot (like when controlling an RC vehicle), and you're driving the vehicle you're in actually.

I found this while testing my vehicle spawner script:

pawn Код:
CMD:j(playerid, params[])
{
    new beirtJarmu,
        lerakottJarmu,
        Float:X,
        Float:Y,
        Float:Z,
        Float:F;

    if(sscanf(params, "d", beirtJarmu)) return SendClientMessage(playerid, Piros, "Hasznбlat: /j [JбrműSzбm]");
    {
        GetPlayerPos(playerid, X, Y, Z);
        GetPlayerFacingAngle(playerid, F);

        lerakottJarmu = CreateVehicle(beirtJarmu, X, Y, Z, F, 0, 0, -1);
        PutPlayerInVehicle(playerid, lerakottJarmu, 0);
    }
    return 1;
}
With this command in, I typed /j 465, then /j 466, and I've saw this:



Edit: While that happens, you can't fell off your new vehicle, and your player cannot be moved.
Sorry for my bad english.
Reply
#2

This isn't restricted to RC vehicles, but also vehicle like trailers and 'towable' vehicles, your best bet is to check if the player spawning the vehicle is already in one and if so eject them from it first, then place them in the new one; This is how I got around it on my script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)