SA-MP Forums Archive
No driver bug while putting player directly from RC vehicle to normal vehicle. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: No driver bug while putting player directly from RC vehicle to normal vehicle. (/showthread.php?tid=493677)



No driver bug while putting player directly from RC vehicle to normal vehicle. - KovaNovik - 09.02.2014

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.



Re: No driver bug while putting player directly from RC vehicle to normal vehicle. - zT KiNgKoNg - 27.07.2015

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.