Et bien après avoir essayé, je dirais que ça ne marche pas
Voici le code:
new Float:x, Float:y, Float: z, Float:fangle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, fangle);
x=0;
y=0;
z=0;
GetXYInFrontOfPlayer(playerid, x, y, 5);
CreateObject(pInfo[playerid][RAMPID], x, y, z, 0.0, 0.0, fangle);
GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
new Float:Angle;
GetPlayerPos(playerid, x, y, Angle);
GetPlayerFacingAngle(playerid, Angle);
if (GetPlayerVehicleID(playerid))
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), Angle);
}
x += (distance * floatsin(-Angle, degrees));
y += (distance * floatcos(-Angle, degrees));
}