Vehicle not spawnning
#1

Hello i made a plane spawner command
and i wanted it to put a player in the vehicle
and when i use the command it isnt showing up like the vehicle

pawn Код:
CMD:plane(playerid,params[])
{
    PutPlayerInVehicle(playerid,513,0);
    return 1;
}
Reply
#2

PutPlayerInVehicle(playerid,vehicleid,0);

vehicleid - The ID of the vehicle for the player to be put in, not the model.
Reply
#3

As far as I am concerned you should use
CreateVehicle as well that will create vehicle, and then you should PutPLayerInVehicle.
Reply
#4

Код:
CMD:plane(playerid,params[])
{
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerFacingAngle(playerid, a);
    GetPlayerPos(playerid, x, y, z);
    new veh = CreateVehicle(513, x, y, z, a, 0, 0, 60);
    PutPlayerInVehicle(playerid,veh,0);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)