Vehicle not spawnning - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle not spawnning (
/showthread.php?tid=474832)
Vehicle not spawnning -
DarkLored - 09.11.2013
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;
}
Respuesta: Vehicle not spawnning -
Parka - 09.11.2013
PutPlayerInVehicle(playerid,vehicleid,0);
vehicleid - The ID of the vehicle for the player to be put in, not the model.
Re: Vehicle not spawnning -
DavidLuango - 10.11.2013
As far as I am concerned you should use
CreateVehicle as well that will create vehicle, and then you should PutPLayerInVehicle.
Re: Vehicle not spawnning -
DeLuca - 10.11.2013
Код:
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;
}