04.12.2012, 10:31
use this:
or if you want to create a vehicle and put player in it: use this
pawn Код:
public OnPlayerSpawn(playerid)
{
PutPlayerInVehicle(playerid,vehicleid,0); // Put a vehicle id if you know
return 1;
}
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;
}