25.05.2012, 13:45
(
Последний раз редактировалось JaTochNietDan; 26.05.2012 в 03:45.
Причина: Use the edit button instead of double posting.
)
How do I get the X, Y, Z at the back of a players vehicle?
Thanks!
I have:
What do I do from that?
Edit: oops, was supposed to be an edit.
Thanks!
I have:
pawn Код:
stock GetXYZBehindVehicle(playerid)
{
new vehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid));
new Float:Pos[5];
GetVehiclePos(GetPlayerVehicleID(playerid), Pos[1], Pos[2], Pos[3]);
GetVehicleZAngle(GetPlayerVehicleID(playerid), Pos[4]);
switch(vehiclemodel)
{
case 400:
{
SetPlayerCheckpoint(playerid, Pos[1], Pos[2], Pos[3], 1.0);
}
}
return 1;
}
Edit: oops, was supposed to be an edit.