how to spawn with vehicle .
#4

use this:

pawn Код:
public OnPlayerSpawn(playerid)
{
   PutPlayerInVehicle(playerid,vehicleid,0); // Put a vehicle id if you know
   return 1;
}
or if you want to create a vehicle and put player in it: use this

pawn Код:
public OnPlayerSpawn(playerid)
{
   new Float:x,Float:y,Float:z,Float:a,veh;
   GetPlayerPos(playerid,x,y,z); GetPlayerFacingAngle(playerid, a);
   veh = CreateVehicle(model, x,y,z,a,-1,-1,1000); // Put a vehicle model in model E.G: Nrg: 522. Hydra: 520
   PutPlayerInVehicle(playerid, veh, 0);
   return 1;
}
Reply


Messages In This Thread
how to spawn with vehicle . - by [INA]Crazy - 04.12.2012, 10:24
Re: how to spawn with vehicle . - by Konstantinos - 04.12.2012, 10:27
Re: how to spawn with vehicle . - by [INA]Crazy - 04.12.2012, 10:28
Re: how to spawn with vehicle . - by dr.lozer - 04.12.2012, 10:31
Re: how to spawn with vehicle . - by Konstantinos - 04.12.2012, 10:34
Re: how to spawn with vehicle . - by [INA]Crazy - 04.12.2012, 10:38
Re : how to spawn with vehicle . - by will-56 - 04.12.2012, 11:06

Forum Jump:


Users browsing this thread: 1 Guest(s)