Create vehicle and putplayerinvehicle
#1

Hi,

I'am creating vehicle and i want instantly put player in vehicle can i do that or i need set timer?
Reply
#2

I can't get what you're saying. But I think it can be helpful : https://sampwiki.blast.hk/wiki/PutPlayerInVehicle
Reply
#3

Try this.
pawn Код:
new Float:x, Float:y, Float:z, Float:a, vsID, vehicle; // defines variables which we will use
        vehicle = CreateVehicle(415, x, y, z, a, 1, 1, 600000); // creates the vehicle
        LinkVehicleToInterior(vehicle, GetPlayerInterior(playerid)); // links the vehicle to the player interior
        SetVehicleVirtualWorld(vehicle, GetPlayerVirtualWorld(playerid)); // link the virtual world to player interior
        PutPlayerInVehicle(playerid, vehicle, 0); // puts the player in the vehicle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)