Posts: 343
Threads: 83
Joined: Jan 2011
Reputation:
0
When i go to example /ls and I am in a car i didnt spawn the car just me.How to spawn with a car?
Posts: 262
Threads: 21
Joined: Mar 2010
Reputation:
0
just check if a player is in a vehicle and then teleport the car in that position and put the player inside it
Posts: 343
Threads: 83
Joined: Jan 2011
Reputation:
0
yes i am in a car but when i type /ls I am not with the car.
Posts: 702
Threads: 94
Joined: Dec 2010
Reputation:
0
use SetVehiclePos when you use SetPlayerPos too. or just get the vehicle id, tp the the vehicle to ls and PutPlayerInVehicle(playerid,vehicleid,0);
Posts: 343
Threads: 83
Joined: Jan 2011
Reputation:
0
I dont understand send a code or something please
Posts: 262
Threads: 21
Joined: Mar 2010
Reputation:
0
before you do such complicated things,
start learning the basics
And RTFM
Posts: 1,506
Threads: 69
Joined: Feb 2008
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
}
else
{
SetPlayerPos(playerid,Float:x,Float:y,Float:z);
}
You don't have to use PutPlayerInVehicle or anything, if you move the vehicle the player in it wont get out of it.