Vehicle Change on the Spot
#3

Quote:
Originally Posted by Daren_Jacobson
Посмотреть сообщение
pawn Код:
//let code be called when typed /changev
//let id == parameter entered after /changev
//let id be an integer between 400 and 611
//let player be in a vehicle and driver of said vehicle
new cid = GetPlayerVehicleID(playerid);
new Float:x, Float:y, Float:z, Float:a,
Float:vX, Float:vY, Float:vZ;
GetVehiclePos(cid, x, y, z);
GetVehicleZAngle(cid, a);
DestroyVehicle(cid);
new nid = CreateVehicle(id, x, y, z, a, -1, -1, -1);
PutPlayerInVehicle(playerid, nid, 0);
SetVehicleVelocity(nid, vX, vY, vZ);
Thanks, but I'm still fairly new to pawno, so could you maybe give me the whole command? I would really appreciate it.
Reply


Messages In This Thread
Vehicle Change on the Spot - by scripter1 - 15.08.2010, 02:41
Re: Vehicle Change on the Spot - by Daren_Jacobson - 15.08.2010, 03:13
Re: Vehicle Change on the Spot - by scripter1 - 15.08.2010, 22:03
Re: Vehicle Change on the Spot - by scripter1 - 27.08.2010, 20:47
Re: Vehicle Change on the Spot - by playbox12 - 27.08.2010, 21:03
Re: Vehicle Change on the Spot - by Mike_Peterson - 27.08.2010, 21:08
Re: Vehicle Change on the Spot - by Adil - 27.08.2010, 21:50
Re: Vehicle Change on the Spot - by scripter1 - 28.08.2010, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)