05.09.2010, 00:18
(
Последний раз редактировалось gamer931215; 05.09.2010 в 09:31.
)
do you know how to create an vehicle ?
Anyways there isnt an "GivePlayerVehicle" command, but you can do this:
Anyways there isnt an "GivePlayerVehicle" command, but you can do this:
pawn Код:
new Float:x,Float:y,Float:z; //saving temporary xy-z positions of player
GetPlayerPos(playerid,x,y,z); //getting player's position and saving them in the floats.
new veh; //temporary thing to save vehicleID in which is your created vehicle.
veh = AddStaticVehicle(vehiclemodelid,x,y,z,rotation,color1,color2); //creating the vehicle and saving vehicleID in veh
PutPlayerInVehicle(playerid,veh,0); //putting player in the vehicle as driver (seat 0)

