30.04.2013, 08:20
Quote:
1) GetPlayerPos
2) new vehicle = CreateVehicle(..); 3) [OPTIONAL] PutPlayerInVehicle(vehicle, ..); Simple! |
Btw, this would help
pawn Код:
GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (GetPlayerVehicleID(playerid))
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
}
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}