Spawning In Vehicle
#4

Quote:
Originally Posted by ╔Jigsaw╗
Code:
public OnPlayerSpawn(playerid)
{
  new car;
  CreateVehicle(car, 0.0, 0.0, 0.0, 1, 1, 10000);
  PutPlayerInVehicle(playerid, car, 0); 
}
Just threw it together. It'll spawn a car at the coordinate 0,0,0 then put the player in it as the driver.
You would have to define car, otherwise it will probably crash your server. Change it to;
pawn Code:
car = CreateVehicle(VEHICLE_ID, FLOAT_X, FLOAT_Y, FLOAT_Z, R, COLOR_1, COLOR_2, RESPAWN_TIME); // fill it in.
or;
pawn Code:
public OnPlayerSpawn(playerid)
{
  new car;
  car = 502; // Hotring racer
  CreateVehicle(car, 0.0, 0.0, 0.0, -1, -1, 10000);
  PutPlayerInVehicle(playerid, car, 0);
  return true;
}
Reply


Messages In This Thread
Spawning In Vehicle - by GforceNL - 24.10.2009, 11:09
Re: Spawning In Vehicle - by RyDeR` - 24.10.2009, 11:52
Re: Spawning In Vehicle - by Adamrcook - 25.10.2009, 08:12
Re: Spawning In Vehicle - by Abernethy - 25.10.2009, 09:12
Re: Spawning In Vehicle - by woot - 25.10.2009, 09:57

Forum Jump:


Users browsing this thread: 1 Guest(s)